import java.util.*;
 
public class Main {
  private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  }
} import java.util.*; util.* java public class Main {
  private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  }
} Main private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  } solve {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  } while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    } in > 0 in 0 {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    } if(in % 10 == 7)
        return "Yes"; in % 10 == 7 in % 10 in 10 7 return "Yes"; "Yes" in = in / 10 in in / 10 in 10 return "No"; "No" int in in public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  } main {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int in = sc.nextInt(); in sc.nextInt() sc.nextInt sc sc.close() sc.close sc System.out.println(solve(in)) System.out.println System.out System System.out solve(in) solve in String[] args args public class Main {
  private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  }
} public class Main {
  private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  }
} Main
import java.util.*;
 
public class Main {
  private static String solve(int in) {
    while (in > 0) {
      if(in % 10 == 7)
        return "Yes";
      in = in / 10;
    }
    return "No";
  }
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int in = sc.nextInt();
    sc.close();
    System.out.println(solve(in));
  }
}
