#include<stdio.h>
int main()
{
    int a,x,y,z;
    scanf("%d",&a);
    x=a/100;
    y=(a%100)/10;
    z=(a%100)%10;
    if(x==7 || y==7 || z==7)
    {
        printf("Yes\n");
    }
    else
        printf("No\n");
    return 0;

}
