#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

#define ll long long 
#define forn(i,n) for(int i = 0;i<int(n);i++)

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin>>s;
    bool a = false;
    forn(i,s.length())
    {
        if(s[i]=='7'){
            a = true;
            break;
        }
    }
    if(a)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}
