import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    }

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

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    }

} Main public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    } main {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int x = in.nextInt(); x in.nextInt() in.nextInt in while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        } x != 0 x 0 {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        } if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            } x % 10 == 7 x % 10 x 10 7 {
                System.out.println("Yes");
                return;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; x /= 10 x 10 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) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    }

} public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        while (x != 0) {
            if (x % 10 == 7) {
                System.out.println("Yes");
                return;
            }
            x /= 10;
        }
        System.out.println("No");
    }

}
