import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		boolean  b = false;
		while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		}

		if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

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

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		boolean  b = false;
		while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		}

		if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

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

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		boolean  b = false;
		while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		}

		if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} main {

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		boolean  b = false;
		while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		}

		if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean  b = false; b false while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		} N / 10 > 0 N / 10 N 10 0 {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		} if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			} N % 10 == 7 N % 10 N 10 7 {
				b = true;
				break;
			} b = true b true break; {
				N = N / 10;
			} N = N / 10 N N / 10 N 10 if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} b || N == 7 b N == 7 N 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
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int N = Integer.parseInt(sc.next());

		boolean  b = false;
		while(N / 10 > 0) {
			if(N % 10 == 7) {
				b = true;
				break;
			} else {
				N = N / 10;
			}
		}

		if(b || N == 7) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

	}

}
