import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 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) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
        
    }
} Main public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
        
    } main {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		} n % 100 % 10 == 7 n % 100 % 10 n % 100 % 10 n 100 10 7 {
		    System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		} n % 100 / 10 == 7 n % 100 / 10 n % 100 n 100 10 7 {
		    System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		} n / 100 == 7 n / 100 n 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) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 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) throws Exception {

        Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.nextLine());
		
		if(n % 100 % 10 == 7){
		    System.out.println("Yes");
		}else if(n % 100 / 10 == 7){
		    System.out.println("Yes");
		}else if(n / 100 == 7){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
        
    }
}