#include <bits/stdc++.h>

using namespace std;

int main()
{
    string S;
    cin >> S;
    bool po = false;
    for (int i = 0; i < S.length(); i++){
        if (S.at(i) == '7'){
            po =true; 
        }
    }
    if(po == true){
        cout << "Yes";
    }else{
        cout << "No";
    }    
}