import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	}
} Main public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	} main {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	} Scanner a = new Scanner(System.in); a new Scanner(System.in) int b = a.nextInt(); b a.nextInt() a.nextInt a int c  = b / 10; c b / 10 b 10 if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} b % 10 == 7 b % 10 b 10 7 {
		    System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} b / 10 == 7 b / 10 b 10 7 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} b % 100 == 70 b % 100 b 100 70 {
			System.out.println("Yes");	
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} c % 10 == 7 c % 10 c 10 7 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} b / 100 == 7 b / 100 b 100 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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	}
} public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int b = a.nextInt();
		int c  = b / 10;
		if(b % 10 == 7) {
		    System.out.println("Yes");
		}else if(b / 10 == 7) {
			System.out.println("Yes");
		}else if(b % 100 == 70) {
			System.out.println("Yes");	
		}else if(c % 10 == 7) {
			System.out.println("Yes");
		}else if(b / 100 == 7) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}	
	}
}