import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String s = scn.next(); s scn.next() scn.next scn boolean check = false; check false for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		} {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		} char ch = s.charAt(i); ch s.charAt(i) s.charAt s i if (ch == '7') {
				check = true;
				break;
			} ch == '7' ch '7' {
				check = true;
				break;
			} check = true check true break; if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} check {
			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" String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		boolean check = false;
		for (int i = 0; i < s.length(); i++) {
			char ch = s.charAt(i);
			if (ch == '7') {
				check = true;
				break;
			}
		}

		if (check) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}