#include <iostream>
#include <string>

using namespace std;

int main()
{
    string a;
    cin >> a;
    for (int i = 0; i < 3; i++) {
        if (a[i] == '7') {
            cout << "Yes";
            break;
        }
    }
    return 0;
}