import java.util.Scanner;

class Main {

	public static final String SEVEN = "7";
	public static void main(final String[] args) {

		Scanner scan = new Scanner(System.in);
		int inputN = scan.nextInt();
		scan.close();
		String numN = String.valueOf(inputN);
		String charN = null;
		for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} 
		System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static final String SEVEN = "7";
	public static void main(final String[] args) {

		Scanner scan = new Scanner(System.in);
		int inputN = scan.nextInt();
		scan.close();
		String numN = String.valueOf(inputN);
		String charN = null;
		for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} 
		System.out.println("No");
	}
} Main public static final String SEVEN = "7"; SEVEN "7" public static void main(final String[] args) {

		Scanner scan = new Scanner(System.in);
		int inputN = scan.nextInt();
		scan.close();
		String numN = String.valueOf(inputN);
		String charN = null;
		for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} 
		System.out.println("No");
	} main {

		Scanner scan = new Scanner(System.in);
		int inputN = scan.nextInt();
		scan.close();
		String numN = String.valueOf(inputN);
		String charN = null;
		for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} 
		System.out.println("No");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int inputN = scan.nextInt(); inputN scan.nextInt() scan.nextInt scan scan.close() scan.close scan String numN = String.valueOf(inputN); numN String.valueOf(inputN) String.valueOf String inputN String charN = null; charN null for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} int i=0; int i=0; i 0 i < numN.length() i numN.length() numN.length numN i++ i++ i {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			} i != (numN.length() - 1) i (numN.length() - 1) numN.length() numN.length numN 1 {
				charN = numN.substring(i, i+1);
			} charN = numN.substring(i, i+1) charN numN.substring(i, i+1) numN.substring numN i i+1 i 1 {
				charN = numN.substring(i);
			} charN = numN.substring(i) charN numN.substring(i) numN.substring numN i if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			} SEVEN.equals(charN) SEVEN.equals SEVEN charN {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" final String[] args args
import java.util.Scanner;

class Main {

	public static final String SEVEN = "7";
	public static void main(final String[] args) {

		Scanner scan = new Scanner(System.in);
		int inputN = scan.nextInt();
		scan.close();
		String numN = String.valueOf(inputN);
		String charN = null;
		for (int i=0; i < numN.length(); i++) {
			if (i != (numN.length() - 1)) {
				charN = numN.substring(i, i+1);
			} else {
				charN = numN.substring(i);
			}
			if (SEVEN.equals(charN)) {
				System.out.println("Yes");
				return;
			}
		} 
		System.out.println("No");
	}
}