#include<iostream>
#include<string>

using namespace std;

int MAX_N = 100;

int main()
{
    // スペース区切りの整数の入力
    int s;
    cin >> s;

    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    s = s/10;
    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    s = s/10;
    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" << endl;
    return 0;
}