import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	}

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

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	} main {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number = sc.nextInt(); number sc.nextInt() sc.nextInt sc sc.close() sc.close sc String str = String.valueOf(number); str String.valueOf(number) String.valueOf String number String result = "No"; result "No" for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		} char ch str.toCharArray() str.toCharArray str {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		} {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		} if ('7' == ch) {
				result = "Yes";
				break;
			} '7' == ch '7' ch {
				result = "Yes";
				break;
			} result = "Yes" result "Yes" break; System.out.print(result) System.out.print System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int number = sc.nextInt();
		sc.close();

		String str = String.valueOf(number);
		String result = "No";
		for(char ch : str.toCharArray()) {
			if ('7' == ch) {
				result = "Yes";
				break;
			}
		}

		System.out.print(result);
	}

}
