import java.util.*;
import java.math.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	}
}  import java.util.*; util.* java import java.math.*; math.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	} main {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.next(); s in.next() in.next in int i; i for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		} i = 0; i = 0 i 0 i < s.length() i s.length() s.length s i++ i++ i {
			if(s.charAt(i) == '7') break;
		} {
			if(s.charAt(i) == '7') break;
		} if(s.charAt(i) == '7') break; s.charAt(i) == '7' s.charAt(i) s.charAt s i '7' break; if(i < s.length()) System.out.println("Yes");
		else System.out.println("No"); i < s.length() i s.length() s.length s System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	}
} Main
import java.util.*;
import java.math.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		int i;
		for(i = 0; i < s.length(); i++) {
			if(s.charAt(i) == '7') break;
		}	
		if(i < s.length()) System.out.println("Yes");
		else System.out.println("No");
	}
} 
