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

int main()
{
    string N;
    cin >> N;

    for (size_t i = 0; i < 3; i++)
    {
        if (N[i] == '7')
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}
