import java.util.*;
 
class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int x = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか
    if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");}
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int x = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか
    if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");}
  }
} Main public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int x = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか
    if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");}
  } main {
	Scanner scanner = new Scanner(System.in);
    
    int x = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか
    if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");}
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");} x % 10 == 7 x % 10 x 10 7 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");} (x/10)%10 == 7 (x/10)%10 (x/10) x 10 10 7 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");} (x/100) == 7 (x/100) x 100 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
import java.util.*;
 
class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int x = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか
    if (x % 10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/10)%10 == 7){
      System.out.println("Yes");
    }
    
    else if ((x/100) == 7){      
    
    	System.out.println("Yes");
    }
    else{
    System.out.println("No");}
  }
}