#include<iostream>
#include<string>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<vector>
using namespace std;

#define lld long long

int main(){
    string s;
    cin >> s;
    for(int i=0;i<s.size();i++){
        if(s[i] == '7'){
            cout << "Yes" << endl;
            exit(0);
        }
    }
    cout << "No" << endl;
}