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

void Main()
{
    int64_t N;
    cin >> N;
    if(N % 10 == 7)
    {
        cout << "Yes" << endl;
        return;
    }
    if(N % 100 == 7)
    {
        cout << "Yes" << endl;
        return;
    }
    if(N % 1000 == 7)
    {
        cout << "Yes" << endl;
        return;
    }

    cout << "No" << endl;
}

int main()
{
    Main();
}
