#include<iostream>
#include<string>
using namespace std;

int main(){
    string s;
    cin >> s;
    int i, j = 0;
    for(i = 0; i < 3; i++){
        if(s[i] == '7') j++;
    }

    if(j > 0) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}