#include <iostream>

using namespace std;

int main()
{

    int n;

    cin >> n;

    int hyaku = n / 100;
    int ju = (n % 100) / 10;
    int ichi = (n % 10);

    bool res = false;

    if (hyaku == 7)
    {
        res = true;
    }
    if (ju == 7)
    {
        res = true;
    }
    if (ichi == 7)
    {
        res = true;
    }

    if (res)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    
    return 0;
}