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

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