import java.util.*;

public class Main {
public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	}
} Main public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	} main {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) String S = keyboard.next(); S keyboard.next() keyboard.next keyboard String ans = "No"; ans "No" for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} {
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} if(S.charAt(i) == '7' ){
    ans = "Yes";
    } S.charAt(i) == '7' S.charAt(i) S.charAt S i '7' {
    ans = "Yes";
    } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	}
} public class Main {
public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	}
} Main
import java.util.*;

public class Main {
public static void main(String[] args) {
		
Scanner keyboard = new Scanner(System.in); 
		
String S = keyboard.next();
String ans = "No";
		
for(int i = 0; i<3; i++){
    if(S.charAt(i) == '7' ){
    ans = "Yes";
    }
} 

	System.out.println(ans);
	keyboard.close();	

	}
}
