#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int cmp(const void *a,const void *b){
    if(*(int*)a>*(int*)b){return 1;}
    else if(*(int*)a<*(int*)b){return -1;}
    else {return 0;}
}


long long int min(long long int a,long long int b){

    if(a>=b){return b;}
    return a;
}

int main(void){
char s[10];
scanf("%s",s);
if(s[0]=='7'||s[1]=='7'||s[2]=='7'){printf("Yes\n");}
else{printf("No");}
}
