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

int main() {
    int n;
    cin >> n;
    for(int i=0;i<3;i++){
        int temp;
        temp = n % 10;
        if(temp == 7){
            cout << "Yes" <<endl;
            n = 0;
        }
    }
    if(n != 0)cout << "No" << endl;
    return 0;
}