#include <iostream>
#include <string>
using namespace std;
int main(void){
    string a;
    cin >> a;
    if(a[0]!='7'&&a[1]!='7'&&a[2]!='7'){
        cout << "No" << endl;
    }
    else{
        cout << "Yes" << endl;
    }
}