import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String num = sc.nextLine(); num sc.nextLine() sc.nextLine sc String count = "No"; count "No" for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		} int i=0; int i=0; i 0 i<num.length() i num.length() num.length num i++ i++ i {
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		} {
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		} if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            } num.charAt(i)=='7' num.charAt(i) num.charAt num i '7' {
              count = "Yes";
              break;
            } count = "Yes" count "Yes" break; System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String num = sc.nextLine();
		String count = "No";	
      	for(int i=0;i<num.length();i++){
            if(num.charAt(i)=='7'){
              count = "Yes";
              break;
            }
		}
        System.out.println(count);
    }
}