#include<iostream>
using namespace std;

int main(){
    long long N;
    cin >> N;
    long long i;
    bool counta = 0;
    for(i = 0; i <= 5; i++){
        if(N%10 == 7) counta = 1;
        N = N/10;
    }
    if(counta) cout << "Yes" << endl;
    else cout << "No" << endl;
    system("pause");
    return 0;
}