import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String A = sc.next();
    String a = A.substring(0);
    String b = A.substring(1);
    String c = A.substring(2);
    if(a.equals("7") || b.equals("7") || c.equals("7")){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

