#include <bits/stdc++.h>

using namespace std;
using ll = long long int;
using P = pair<int, int>;

#define roop(i, n) for(int i = 0;i < n;i++)

int main(void){

    int n;
    cin >> n;

    for(int i = 0;i < 3;i++){
        if(n%10 == 7){
            cout << "Yes" << endl;
            return 0;
        }

        n /= 10;
    }

    cout << "No" << endl;

    return 0;
}