#include <bits/stdc++.h>
#define ll long long int
using namespace std;

int main() {
        ll n;
        cin>>n;
        bool x=false;
        while(n!=0)
        {   int y=n%10;
            if(y==7)
            x=true;
            n=n/10;
        }
        if(x)
        cout<<"Yes";
        else
        cout<<"No";
}