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

public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    }

} Main public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    } main {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(reader.readLine()); n Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader int flag=0; flag 0 while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        } n>0 n 0 {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        } int r = n%10; r n%10 n 10 if(r==7)
            {
                flag=1;
                break;
            } r==7 r 7 {
                flag=1;
                break;
            } flag=1 flag 1 break; n=n/10 n n/10 n 10 if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No"); flag==1 flag 1 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" String[] args args public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    }

} public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("Yes");
        else
            System.out.println("No");

    }

}
