#include <iostream>
#include <string>
#include <string.h>
#define For(x,y) for(x=0;x<y;x++)
using namespace std;
int main()
{
    string s;
    int i,flag=0;
    cin>>s;
    For(i,s.size())
    {
        if(s[i]=='7')
        {
            cout<<"Yes";
            flag=1;
            break;
        }
    }
    if(flag == 0)
        cout<<"No";
    return 0;
}