#include <iostream>
using namespace std;
int main()
{
    string n;
    cin >> n;
    bool ok = false;
    for(char c : n)
    {
        if(c == '7')
            ok = true;
    }
    if(ok)
        cout << "Yes" << endl;
    else 
        cout << "No" << endl;
    return 0;
}