import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.close() sc.close sc int N100 = N/100; N100 N/100 N 100 int N10 = (N/10)%10; N10 (N/10)%10 (N/10) N 10 10 int N1 = N%10; N1 N%10 N 10 if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        } N1 == 7 || N10 == 7 || N100 == 7 N1 == 7 || N10 == 7 || N100 == 7 N1 == 7 N1 7 N10 == 7 N10 7 N100 == 7 N100 7 {
          System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
          System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }
    }
}