import java.util.*;

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

class Main{
	static public void main(String[] args){
		Scanner sc=new Scanner(System.in);
		
		String str=sc.nextLine();
		int count=0;
		for(int i=0;i<str.length();i++){
			char ch=str.charAt(i);
			if(ch=='7'){
				count++;
			}
		}
		
		if(count>0)	System.out.println("Yes");
		else 	System.out.println("No");
	}
}