import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String res = new String("No"); res new String("No") for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    } {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    } int tmp = n.charAt(i) - '0'; tmp n.charAt(i) - '0' n.charAt(i) n.charAt n i '0' if (tmp == 7) res = new String("Yes"); tmp == 7 tmp 7 res = new String("Yes") res new String("Yes") System.out.println(res) System.out.println System.out System System.out res sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String res = new String("No");
    for (int i = 0; i < 3; i++) {
      int tmp = n.charAt(i) - '0';
      if (tmp == 7) res = new String("Yes");
    }
    System.out.println(res);
    sc.close();
  }
}