#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void){
    int N=0;
    cin >> N;
    int count=0;
    if(N/100==7){
        count++;
    }
    if(N/10*10==7){
        count++;
    }
    if(N%10==7){
        count ++;
    }
    if(count>0)
    cout << "Yes" << endl;
    else cout << "No"<<endl;
}