#include <bits/stdc++.h>
using namespace std;

int main() {
    int number;
    cin >> number;
    bool seven = false;
    if(number/100== 7){
        seven = true;
    }
    number %= 10;
    if(number/10 == 7){
        seven = true;
    }
    number %= 10;
    if(number == 7){
        seven = true;
    }
    if(seven){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}
