#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    bool b=0;
    while(n>0)
    {
        if(n%10 == 7 )
        {
            b=1;
            break;
        }
        n/=10;
    }
    if(b) cout<<"Yes";
    else cout<<"No";

}
