#include <iostream>
#include<vector>
using namespace std;

int main()
{
    int num,d,flag=0;
    cin>>num;
    while(num>0)
    {
        d=num%10;
        if(d==7)
        {
            flag=1;
            break;
        }
        num=num/10;
    }
    if(flag)
        cout<<"Yes";
    else
        cout<<"No";
}
