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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin>> n;
    while ( n!=0) {
        int x =  n%10;
        if ( x == 7) {
            cout << "Yes" << endl;
            return 0;
        }
        n = n/10;
    }
    cout << "No" << endl;
    return 0;
}
