import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	} main {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc boolean y=false; y false for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		} {
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		} if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			} x/100==7 x/100 x 100 7 {
				y=true;
				break;
			} y=true y true break; if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			} (x%100)/10==7 (x%100)/10 (x%100) x 100 10 7 {
				y=true;
				break;
			} y=true y true break; if(x%10==7) {
				y=true;
				break;
			} x%10==7 x%10 x 10 7 {
				y=true;
				break;
			} y=true y true break; if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		} y {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		boolean y=false;
		for(int i=0;i<3;i++){
			if(x/100==7){
				y=true;
				break;
			}else if((x%100)/10==7) {
				y=true;
				break;
			}else if(x%10==7) {
				y=true;
				break;
			}
		}
		if(y) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		

	}
}