#include <stdio.h>
int main(void)
{
    int  n,a,b,c;
n/100==a,(n-a*100)/10==b,n%10==c;
    
if(a=7)
printf("Yes");
else if(b=7)
printf("Yes");
else if(c=7)
printf("Yes");
else
printf("No");

return 0;
}