import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	} main {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} n / 100 == 7 n / 100 n 100 7 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} (n % 100) / 10 == 7 (n % 100) / 10 (n % 100) n 100 10 7 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} (n % 10) == 7 (n % 10) n 10 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" s.close() s.close s String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		if (n / 100 == 7) {
			System.out.println("Yes");
		} else if ((n % 100) / 10 == 7) {
			System.out.println("Yes");
		} else if ((n % 10) == 7){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		s.close();
	}
}
