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

int main() {
    string n;
    bool f = false;
    cin >> n;
    for(int i = 0; i < 3; ++i) {
        if(n[i] == '7') f = true; 
    }
    if(f) {
        cout << "Yes" << '\n';
    } else {
        cout << "No" << '\n';
    }
    return 0;
}
