#include <bits/stdc++.h>

using namespace std;

int main() {
    int N,M,G,H;
    cin >> N;
    M = (N - 7) % 10;
    G = (N - 70) % 10;
    H = (N - 700) % 10;
    if (M == 0 || G == 0 || H == 0) {
        cout << "Yes" << endl;
    }
    

    else
    {
        cout << "No" << endl;
    }

    }