import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] n = new String[3]; n new String[3] 3 int cnt = 0; cnt 0 n = sc.next().split("") n sc.next().split("") sc.next().split sc.next() sc.next sc "" String msg = ""; msg "" for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		} int i = 0; int i = 0; i 0 i < n.length i n.length n n.length i++ i++ i {
			if (n[i].equals("7")) cnt++;
		} {
			if (n[i].equals("7")) cnt++;
		} if (n[i].equals("7")) cnt++; n[i].equals("7") n[i].equals n[i] n i "7" cnt++ cnt System.out.println(cnt > 0 ? msg = "Yes" : "No") System.out.println System.out System System.out cnt > 0 ? msg = "Yes" : "No" cnt > 0 cnt 0 msg = "Yes" msg "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] n = new String[3];
		int cnt = 0;
		n = sc.next().split(""); String msg = "";
		for(int i = 0; i < n.length; i++) {
			if (n[i].equals("7")) cnt++;
		}
		System.out.println(cnt > 0 ? msg = "Yes" : "No");
	}
}
