#include <iostream>
#include <cstring>

using namespace std;

int main(void)
{
    int i, l;
    string s;

    cin >> s;
    l = s.size();

    for(i = 0; i < l; i++)
    {
        if(s[i] == '7')
            break;
    }

    if(i == l)
        cout << "No\n";
    else
        cout << "Yes\n";

    return 0;
}
