import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	}

	private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	}

	private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = in.nextInt(); n in.nextInt() in.nextInt in boolean r = solve(n); r solve(n) solve n if (r)
			System.out.println("Yes");
		else
			System.out.println("No"); r System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" in.close() in.close in String[] args args private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	} solve {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	} if (n == 0)
			return false; n == 0 n 0 return false; false if (n % 10 == 7)
			return true; n % 10 == 7 n % 10 n 10 7 return true; true return solve(n /= 10); solve(n /= 10) solve n /= 10 n 10 int n n public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	}

	private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	}

	private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		boolean r = solve(n);
		if (r)
			System.out.println("Yes");
		else
			System.out.println("No");
		in.close();
	}

	private static boolean solve(int n) {
		if (n == 0)
			return false;
		if (n % 10 == 7)
			return true;
		return solve(n /= 10);
	}
}