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

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

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

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

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

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

	} main {

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc String B = String.valueOf(A); B String.valueOf(A) String.valueOf String A char[] C = B.toCharArray(); C B.toCharArray() B.toCharArray B if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		} C[0] == '7' || C[1] == '7' || C[2] == '7' C[0] == '7' || C[1] == '7' || C[2] == '7' C[0] == '7' C[0] C 0 '7' C[1] == '7' C[1] C 1 '7' C[2] == '7' C[2] C 2 '7' {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" return; String[] args args public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

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

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

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

		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();

		String B = String.valueOf(A);

		char[] C = B.toCharArray();

		if (C[0] == '7' || C[1] == '7' || C[2] == '7') {
			System.out.print("Yes");
		} else {
			System.out.print("No");
		}

	return;

	}
}
