#include <iostream>
#include <cstdlib>

using namespace std;

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

    while(n > 0)
    {
        if (n % 10 == 7)
        {
            cout << "Yes" << endl;
            return 0;
        }
        else
            n = n / 10;
    }

    cout << "No" << endl;

    return 0;
}