#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(a) int((a).size())

int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
  
    ll n;
    cin>>n;
    while(n>0)
    {
        ll r = n%10;
        if(r == 7) {cout<<"YES";return 0;}
        n/=10;
    }
    cout<<"NO";
}