/*
susheel_7
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define INF 0x3f3f3f3f 
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
#define ll long long int


int main() {
    int n,s,ans=0;
    cin>>n;
    while(n>0)
    {
        s=n%10;
        n=n/10;
        if(s==7)
        {
            ans=1;
            break;
        }
        

    }
    if(ans==1)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    return 0;
}