#include <iostream>
#include <algorithm>
#include <string>
#define flush fflush(stdout)
using namespace std;
typedef long long ll;


int main(void) {
    int i;
    string s;

    cin >> s;

    for (i = 0; i < 3:i++) {
        if (s[i] == '7') {
            cout << "Yes" << endl;
            return 0l
        }
    }
    cout << "No" << endl;

    return 0;
}