#include <iostream>
#include <cmath>

using namespace std;

int digit_length(int num){
    int count = 0;
    while(num){
        num = num / 10;
        ++count;
    }
    return count;
}

int main(){
    int n;
    cin >> n;
    bool flag = false;
    for(int i = 0;i < digit_length(n);i++){
        if((n / int(pow(10, i)) % 10) == 7){
            flag = true;
        }
    }
    if(flag == true){cout << "Yes" << endl;}else{cout << "No"<< endl;}
    return 0;
}
