import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	} main {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String x = input.nextLine(); x input.nextLine() input.nextLine input boolean lucky = false; lucky false for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		} int i = 0; int i = 0; i 0 i < x.length() i x.length() x.length x i++ i++ i {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		} {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		} if (x.charAt(i)=='7') {
				lucky = true;
				break;
			} x.charAt(i)=='7' x.charAt(i) x.charAt x i '7' {
				lucky = true;
				break;
			} lucky = true lucky true break; System.out.println(lucky?"Yes":"No") System.out.println System.out System System.out lucky?"Yes":"No" lucky "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String x = input.nextLine();
		boolean lucky = false;
		for (int i = 0; i < x.length(); i++) {
			if (x.charAt(i)=='7') {
				lucky = true;
				break;
			}
		}
		System.out.println(lucky?"Yes":"No");
	}
}
