#include <iostream>

using namespace std;

int main(){
    int n;
    bool f = false;
    cin >> n;
    for(int i = 0; i < 3; i++){
        if(n % 10 == 7){
            f = true;
            break;
        }
        n /= 10;
    }
    if(f) cout << "Yes" << endl;
    else  cout << "No" << endl;
    
}