import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int input = sc.nextInt();
      	int mod = 0;
       	while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        }
        if(input % 10 == 7){
           System.out.println("Yes");
           return;
        }
      	System.out.println("No");
    }
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int input = sc.nextInt();
      	int mod = 0;
       	while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        }
        if(input % 10 == 7){
           System.out.println("Yes");
           return;
        }
      	System.out.println("No");
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int input = sc.nextInt();
      	int mod = 0;
       	while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        }
        if(input % 10 == 7){
           System.out.println("Yes");
           return;
        }
      	System.out.println("No");
    } main {
    	Scanner sc = new Scanner(System.in);
      	int input = sc.nextInt();
      	int mod = 0;
       	while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        }
        if(input % 10 == 7){
           System.out.println("Yes");
           return;
        }
      	System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int input = sc.nextInt(); input sc.nextInt() sc.nextInt sc int mod = 0; mod 0 while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        } input != 0 input 0 {
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        } mod = input % 10 mod input % 10 input 10 if(mod == 7){
              System.out.println("Yes");
              return;
            } mod == 7 mod 7 {
              System.out.println("Yes");
              return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; input = input / 10 input input / 10 input 10 if(input % 10 == 7){
           System.out.println("Yes");
           return;
        } input % 10 == 7 input % 10 input 10 7 {
           System.out.println("Yes");
           return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	int input = sc.nextInt();
      	int mod = 0;
       	while(input != 0){
        	mod = input % 10;
          	if(mod == 7){
              System.out.println("Yes");
              return;
            }
          	input = input / 10;
        }
        if(input % 10 == 7){
           System.out.println("Yes");
           return;
        }
      	System.out.println("No");
    }
}