
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	}

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

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	} main {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n=in.nextInt(); n in.nextInt() in.nextInt in int num=0; num 0 int m=n; m n boolean checker=false; checker false while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		} m!=0 m 0 {
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		} num=m%10 num m%10 m 10 if(num==7) {checker = true;break;} num==7 num 7 {checker = true;break;} checker = true checker true break; m=m/10 m m/10 m 10 System.out.println(checker==true?"Yes":"No") System.out.println System.out System System.out checker==true?"Yes":"No" checker==true checker true "Yes" "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n=in.nextInt();
		int num=0;
		int m=n;
		boolean checker=false;
		while(m!=0){
		num=m%10;
		if(num==7) {checker = true;break;}
		m=m/10;
		}
		System.out.println(checker==true?"Yes":"No");

	}

}
