#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lli long long
#define mp make_pair
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define allr(v) (v).rbegin(), (v).rend()
#define MOAE                 \
    ios::sync_with_stdio(0); \
    cin.tie(0);              \
    cout.tie(0);

int main()
{
    MOAE;
    string s;
    cin >> s;
    bool f = false;
    for (auto it : s)
        if (it == '7')
            f = true;
    cout << (f ? "YES" : "NO") << endl;
}
