#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

int main()
{
    ll N;
    cin >> N;
    if(N % 10 == 7) {
        cout << "Yes" << endl;
    } else if (N % 100 >= 70 && N % 100 < 80) {
        cout << "Yes" << endl;
    } else if (N / 100 == 7) { 
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}