#include <iostream>
using namespace std;

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

    string str = to_string(n);

    if (str.find("7") == string::npos)
    {
        cout << "No" << endl;
    }
    else
    {
        cout << "Yes" << endl;
    }
    return 0;
}
