import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn if(a == 7){
            System.out.println("Yes");
            return;
        } a == 7 a 7 {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        } a/10 >0 a/10 a 10 0 {
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        } if(a%10 == 7){
                System.out.println("Yes");
                return;
            } a%10 == 7 a%10 a 10 7 {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; a/= 10 a 10 if(a%10 == 7){
                System.out.println("Yes");
                return;
            } a%10 == 7 a%10 a 10 7 {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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 stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();

        if(a == 7){
            System.out.println("Yes");
            return;
        }

        while(a/10 >0){
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
            a/= 10 ;
            if(a%10 == 7){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}