import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	} main {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int N = 0; N 0 N = cin.nextInt() N cin.nextInt() cin.nextInt cin while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		} N>0 N 0 {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		} if(N%10==7) {
				System.out.println("Yes");
				return;
			} N%10==7 N%10 N 10 7 {
				System.out.println("Yes");
				return;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; N/=10 N 10 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) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner cin = new Scanner(System.in);
		int N = 0;
		N = cin.nextInt();
		
		while(N>0) {
			if(N%10==7) {
				System.out.println("Yes");
				return;
			}
			N/=10;
		}
		System.out.println("No");
	}

}
