
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        }
    }
 import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        }
    } Main public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        } main {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner Boolean ans = false; ans false while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            } b > 0 b 0 {
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            } int c = b % 10; c b % 10 b 10 if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                } c == 7 c 7 {
                    System.out.println("Yes");
                    ans = true;
                    break;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" ans = true ans true break; b /= 10 b 10 if(ans == false)
            System.out.println("No"); ans == false ans false System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        }
    } public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        }
    } Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
            Boolean ans = false;
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    break;
                }
                b /= 10;

            }
            if(ans == false)
            System.out.println("No");

        }
    }

