#include <iostream>
using namespace std;

int main() {
    int n;
    cin>>n;
    while (n) {
        if (7==n%10) {
            cout<<"Yes" << endl;
            return 0;
        }
        n /= 10;
    }
    cout << "No" << endl;
    return 0;
}