#include <stdio.h>

int main() {
    int x = 0;

    char N[3];
    scanf("%s", N);

    for (int i = 0; i < 3; i++) {
        if (N[i] =='7') {
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
    return 0;
}