import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  } main {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc String S; S if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    } N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7' N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7' N.charAt(0)=='7' N.charAt(0) N.charAt N 0 '7' N.charAt(1)=='7' N.charAt(1) N.charAt N 1 '7' N.charAt(2)=='7' N.charAt(2) N.charAt N 2 '7' {
      S = "Yes";
    } S = "Yes" S "Yes" {
      S = "No";
    } S = "No" S "No" System.out.println(S) System.out.println System.out System System.out S String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  }
} Main
import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    String S;
    if(N.charAt(0)=='7' || N.charAt(1)=='7' || N.charAt(2)=='7'){
      S = "Yes";
    } else {
      S = "No";
    }
    System.out.println(S);
  }
}