#include <iostream>
#include <string>


using namespace std;

int main() {
    ios::sync_with_stdio(false);
    string num;
    cin >> num;
    for (int i = 0; i < 3; ++i) {
        if (num[i] == '7') {
            cout << "Yes" << endl;
            return 1;
        }
    }
    cout << "No" << endl;
}