#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <string>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main()
{
    string S;
    cin >> S;

    rep(i, 3) {
        if (S.at(i) == '7') {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";
    return 0;
}
