import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
}



 import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} Main public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    } main {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n =s.nextInt(); n s.nextInt() s.nextInt s int x=0; x 0 while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        } n>0 n 0 {

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        } int digit = n%10; digit n%10 n 10 n=n/10 n n/10 n 10 if(digit==7){
                x++;
                break;
            } digit==7 digit 7 {
                x++;
                break;
            } x++ x break; if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        } x>0 x 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } 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) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} public class Main {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
} Main
import java.util.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

        int n =s.nextInt();

        int x=0;

        while(n>0){

            int digit = n%10;
            n=n/10;

            if(digit==7){
                x++;
                break;
            }
        }

        if (x>0){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }

    }
}




