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

int main(void){
    string n;
    cin >> n;
    bool ok = false;
    if(n[0]=='7') ok = true;
    if(n[1]=='7') ok = true;
    if(n[2]=='7') ok = true;

    if(ok) cout << "Yes" << endl;
    else cout << "No" << endl;
}