#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(begin, i, end) for (int i = begin; i < (int)(end); i++)
#define all(v) v.begin(), v.end()
const int MOD = 1000000007;

int main()
{
    string S;
    cin >> S;
    rep(0, i, 3)
    {
        if (S[i] == '7')
        {
            cout << "Yes" << endl;
            retunr 0;
        }
    }
    cout << "No" << endl;
}