#include "bits/stdc++.h"

using namespace std;

int main()
{
    int n;
    cin >> n;

    for (auto i = 0; i < 3; i++)
    {
        auto digit = n % 10;
        if (digit == 7)
        {
            cout << "Yes" << endl;
            return 0;
        }
        n = n / 10;
    }
    cout << "No" << endl;

    return 0;
}
