#include <iostream>
#include <cstdlib>
#include <utility>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <cmath>
#include <numeric>

using namespace std;

using ll = long long;
using vi = vector<int>; using vi2 = vector<vi>;

#define loopi(i, a, b) for(int i = (int)a; i < (int)b; i++)
#define loop(i, n) for (int i = 0; i < (int)n; i++)
#define loopeq(i, n) for (int i = 0; i <= (int)n; i++)
#define all(a) (a).begin(), (a).end()

int main() {
    int n; cin >> n;
    int a = 10;
    while (n > a * 10) {
        if (n % a == 7) {cout << "Yes" << endl; return 0;}
        else a *= 10;
    }
    cout << "No" << endl;
}