import java.util.*;
public class Main{
     public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     }
} import java.util.*; util.* java public class Main{
     public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     }
} Main public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     } main {
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan boolean flag = true; flag true while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         } a != 0 a 0 {
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         } if ( a % 10 == 7 ){
                flag = false;
                break;
            } a % 10 == 7 a % 10 a 10 7 {
                flag = false;
                break;
            } flag = false flag false break; a/=10 a 10 if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         } !flag flag {
             System.out.println("Yes");
         } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
             System.out.println("No");
         } System.out.println("No") System.out.println System.out System System.out "No" String []args args public class Main{
     public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     }
} public class Main{
     public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     }
} Main
import java.util.*;
public class Main{
     public static void main(String []args){
         Scanner scan = new Scanner(System.in);
         int a = scan.nextInt();
         
         boolean flag = true;
         while ( a != 0 ){
            if ( a % 10 == 7 ){
                flag = false;
                break;
            }
            
            a/=10;
         }
         
         if ( !flag ){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
     }
}