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

int main() {
    int N;

vector<int> vec(N);
    cin >> N;
    if (vec.at(0) == 7 || vec.at(1) == 7 || vec.at(2) == 7) {
        cout << "Yes" << endl;
    }
    

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

    }