#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n, count=0;
    cin>>n;
    while(n)
    {
        int rem=n%10;
        if(rem == 7)
        {
            count++;
        }
        n=n/10;
    }
    if(count == 0)
       cout<<"No";
    else
       cout<<"Yes";
return 0;
}
    