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

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
    int n;
    cin >> n;
    bool yes = false;
    while(n > 0) {
        yes |= n % 10 == 7;
        n /= 10;
    }
    
    cout << (yes ? "Yes" : "No") << endl;
}
