import java.util.*; 
 
class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");
 
 
 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }
 
    	System.out.println();
    }
} import java.util.*; util.* java class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");
 
 
 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }
 
    	System.out.println();
    }
} Main public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");
 
 
 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }
 
    	System.out.println();
    } main {
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");
 
 
 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }
 
    	System.out.println();
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc String[] a=s.split(""); a s.split("") s.split s "" if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 } a[0].equals("7")||a[1].equals("7")||a[2].equals("7") a[0].equals("7")||a[1].equals("7")||a[2].equals("7") a[0].equals("7") a[0].equals a[0] a 0 "7" a[1].equals("7") a[1].equals a[1] a 1 "7" a[2].equals("7") a[2].equals a[2] a 2 "7" {
    		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" System.out.println() System.out.println System.out System System.out String[] args args
import java.util.*; 
 
class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");
 
 
 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }
 
    	System.out.println();
    }
}