import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String string[] = {"Yes", "No"}; string {"Yes", "No"} "Yes" "No" int ans = 1; ans 1 while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		} n > 0 n 0 {
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		} int tmp = n / 10; tmp n / 10 n 10 int digitnum = n - tmp * 10; digitnum n - tmp * 10 n tmp * 10 tmp 10 if(digitnum == 7)ans = 0; digitnum == 7 digitnum 7 ans = 0 ans 0 n /= 10 n 10 sc.close() sc.close sc System.out.println(string[ans]) System.out.println System.out System System.out string[ans] string ans String args[] args public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	}
} public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String string[] = {"Yes", "No"};
		int ans = 1;
		while(n > 0){
			int tmp = n / 10;
			int digitnum = n - tmp * 10;
			if(digitnum == 7)ans = 0;
			n /= 10;
		}
		sc.close();
		System.out.println(string[ans]);
	}
}
