import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc sc.close() sc.close sc for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    } {
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    } if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      } str.charAt(i) == '7' str.charAt(i) str.charAt str i '7' {
        System.out.print("Yes");
        return;
      } System.out.print("Yes") System.out.print System.out System System.out "Yes" return; 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);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    
    for(int i = 0; i < str.length(); i++){
      if(str.charAt(i) == '7'){
        System.out.print("Yes");
        return;
      }
    }
    System.out.print("No");
  }
}