import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  } main {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String ans; ans if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No"; n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7' n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7' n.charAt(0)=='7' n.charAt(0) n.charAt n 0 '7' n.charAt(1)=='7' n.charAt(1) n.charAt n 1 '7' n.charAt(2)=='7' n.charAt(2) n.charAt n 2 '7' ans = "Yes" ans "Yes" ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();

    String ans;
    
    if(n.charAt(0)=='7'||n.charAt(1)=='7'||n.charAt(2)=='7') ans = "Yes";
    else ans = "No";
    System.out.println(ans);
    
  }
}