import java.util.*;

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

        final Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        boolean flg = false;
        while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        }
        if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    }
} import java.util.*; util.* java class Main {
    public static void main(final String[] args) {

        final Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        boolean flg = false;
        while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        }
        if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    }
} Main public static void main(final String[] args) {

        final Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        boolean flg = false;
        while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        }
        if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    } main {

        final Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        boolean flg = false;
        while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        }
        if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc boolean flg = false; flg false while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        } i != 0 i 0 {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        } if (i % 10 == 7) {
                flg = true;
            } i % 10 == 7 i % 10 i 10 7 {
                flg = true;
            } flg = true flg true i /= 10 i 10 if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } flg {
            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" sc.close() sc.close sc final String[] args args
import java.util.*;

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

        final Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        boolean flg = false;
        while (i != 0) {
            if (i % 10 == 7) {
                flg = true;
            }
            i /= 10;
        }
        if (flg) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    }
}
