import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  }
} import java.util.*; util.* java public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  } main {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc char c[] = str.toCharArray(); c str.toCharArray() str.toCharArray str boolean t = true; t true for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    } {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    } if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      } c[i] == '7' c[i] c i '7' {
        t = true;
        break;
      } t = true t true break; {
        t = false;
        continue;
      } t = false t false continue; if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    } t == false t false {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  }
} Main
import java.util.*;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    char c[] = str.toCharArray();
    boolean t = true;

    for (int i = 0 ; i < 3 ; i++ ) {
      if (c[i] == '7') {
        t = true;
        break;
      } else {
        t = false;
        continue;
      }
    }

    if (t == false) {
      System.out.println("No");
    } else {
      System.out.println("Yes");
    }

  }
}
