import java.util.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String regex = "7";
    Pattern p = Pattern.compile(regex);

    check(p, s);
  }

  private static void check(Pattern pattern, String target){
    Matcher matcher = pattern.matcher(target);
    if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} import java.util.*; util.* java import java.util.regex.Pattern; Pattern java.util.regex import java.util.regex.Matcher; Matcher java.util.regex class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String regex = "7";
    Pattern p = Pattern.compile(regex);

    check(p, s);
  }

  private static void check(Pattern pattern, String target){
    Matcher matcher = pattern.matcher(target);
    if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String regex = "7";
    Pattern p = Pattern.compile(regex);

    check(p, s);
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String regex = "7";
    Pattern p = Pattern.compile(regex);

    check(p, s);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String regex = "7"; regex "7" Pattern p = Pattern.compile(regex); p Pattern.compile(regex) Pattern.compile Pattern regex check(p, s) check p s String[] args args private static void check(Pattern pattern, String target){
    Matcher matcher = pattern.matcher(target);
    if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No");
  } check {
    Matcher matcher = pattern.matcher(target);
    if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No");
  } Matcher matcher = pattern.matcher(target); matcher pattern.matcher(target) pattern.matcher pattern target if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No"); matcher.find() matcher.find matcher System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" Pattern pattern pattern String target target
import java.util.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String regex = "7";
    Pattern p = Pattern.compile(regex);

    check(p, s);
  }

  private static void check(Pattern pattern, String target){
    Matcher matcher = pattern.matcher(target);
    if (matcher.find())
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}
