import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    }
  }
} import java.util.*; util.* java class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    }
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    } int i=2; int i=2; i 2 i>=0 i 0 i-- i-- i {
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    } {
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    } if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      } x/(int)(Math.pow(10,(double)i))==7 x/(int)(Math.pow(10,(double)i)) x (int)(Math.pow(10,(double)i)) Math.pow Math 10 (double)i 7 {
         System.out.println("Yes");
         break;
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(i==0)
         System.out.println("No"); i==0 i 0 System.out.println("No") System.out.println System.out System System.out "No" x%=(int)(Math.pow(10,(double)i)) x (int)(Math.pow(10,(double)i)) Math.pow Math 10 (double)i String args[] args
import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    for(int i=2;i>=0;i--){
      if(x/(int)(Math.pow(10,(double)i))==7){
         System.out.println("Yes");
         break;
      }
      if(i==0)
         System.out.println("No");
      x%=(int)(Math.pow(10,(double)i));
    }
  }
}