#include<bits/stdc++.h>
typedef long long int ll;
using namespace std;
#define fastio ios_base::sync_with_stdio(false);cout.tie(0);cin.tie(0);

const ll mod= 998244353;
const ll MAXN= 2e5 + 5;
const ll inf= 1e16;

int main()
{
    fastio;
    ll n;
    cin >> n;
    if(n % 10 == 7) cout << "Yes" << endl;
    else{
        n = n / 10;
        if(n % 10 == 7) cout << "Yes" << endl;
        else{
            n = n / 10;
            if(n % 10 == 7) cout << "Yes" << endl;
            else cout << "No" << endl;
        }
    }
}
