import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int x = a % 10; x a % 10 a 10 int y = (a % 100 - x)/10; y (a % 100 - x)/10 (a % 100 - x) a % 100 a 100 x 10 int z = a/100; z a/100 a 100 if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        } x==7||y==7 x==7 x 7 y==7 y 7 {
          System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        } z==7 z 7 {
          System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
          System.out.println("No");
        } 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 sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = (a % 100 - x)/10;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
}