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

public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    }
} Main public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    } main {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    } final Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.next(); str s.next() s.next s if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No"); str.contains("7") str.contains str "7" 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" final String[] args args public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    }
} public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main (final String[] args) {
        final Scanner s = new Scanner(System.in);
        String str = s.next();
      	
      	if (str.contains("7")) System.out.println("Yes");
      	else System.out.println("No");
    }
}