/**
 * Title:
 * Url:
 */
#include<bits/stdc++.h>

using namespace std;

#define ll long long

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