import java.io.FileNotFoundException;
import java.util.Scanner;

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

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    }
} import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    }
} Main public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    } main {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String s = String.valueOf(N); s String.valueOf(N) String.valueOf String N boolean flag = s.contains("7"); flag s.contains("7") s.contains s "7" if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	} flag {
    		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 FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


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

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    }
} Main
import java.io.FileNotFoundException;
import java.util.Scanner;

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

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    }
}
