import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;

class Main{
  public static void main(String[] arigs) throws IOException{
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out);
    String N = reader.readLine();
    if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    }
    reader.close();
    out.flush();
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io class Main{
  public static void main(String[] arigs) throws IOException{
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out);
    String N = reader.readLine();
    if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    }
    reader.close();
    out.flush();
  }
} Main public static void main(String[] arigs) throws IOException{
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out);
    String N = reader.readLine();
    if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    }
    reader.close();
    out.flush();
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out);
    String N = reader.readLine();
    if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    }
    reader.close();
    out.flush();
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) String N = reader.readLine(); N reader.readLine() reader.readLine reader if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    } N.contains("7") N.contains N "7" {
      out.println("Yes");
    } out.println("Yes") out.println out "Yes" {
      out.println("No");
    } out.println("No") out.println out "No" reader.close() reader.close reader out.flush() out.flush out String[] arigs arigs
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.io.PrintWriter;

class Main{
  public static void main(String[] arigs) throws IOException{
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(System.out);
    String N = reader.readLine();
    if(N.contains("7")){
      out.println("Yes");
    }else{
      out.println("No");
    }
    reader.close();
    out.flush();
  }
}