#include<iostream>
#include<string>
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    ll n,k=0;
    string s;
    cin>>n;
    s=to_string(n);
    for(int i=0;i<s.size();i++)
    {
        if(s[i]=='7')
        {
            cout<<"yes";
            k=1;
            break;
        }
    }
    if(k==0)
    cout<<"No";
    return 0;
}