import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  }
} Main public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    } catch(Exception e){
    } Exception e {
    } {
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    } String S = br.readLine(); S br.readLine() br.readLine br boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7'; f S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7' S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7' S.charAt(0) == '7' S.charAt(0) S.charAt S 0 '7' S.charAt(1) == '7' S.charAt(1) S.charAt S 1 '7' S.charAt(2) == '7' S.charAt(2) S.charAt S 2 '7' System.out.println(f ? "Yes" : "No") System.out.println System.out System System.out f ? "Yes" : "No" f "Yes" "No" String[] args args public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  }
} public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      String S = br.readLine();
      boolean f = S.charAt(0) == '7' || S.charAt(1) == '7' || S.charAt(2) == '7';
      System.out.println(f ? "Yes" : "No");
    }catch(Exception e){
    }
  }
}