import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  }
} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  } main {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int h=n/100; h n/100 n 100 int i=n%100; i n%100 n 100 int j=i/10; j i/10 i 10 int k=i%10; k i%10 i 10 if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    } 100<=n&&n<=999 100<=n 100 n n<=999 n 999 {
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    } if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      } (h==7)||(j==7)||(k==7) (h==7)||(j==7)||(k==7) (h==7) h 7 (j==7) j 7 (k==7) k 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 n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==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 n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    int h=n/100;
    int i=n%100;
    int j=i/10;
    int k=i%10;
    if(100<=n&&n<=999){
      if((h==7)||(j==7)||(k==7)){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }
  }
}
