#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define pii pair<int,int>
#define pli pair<ll,int>
#define pil pair<int,ll>
#define pll pair<ll,ll>
const int inf = 1 << 30;
const ll linf = 1e18;
template<class T> void chmin(T& x, T y){if(x > y) x = y;}
template<class T> void chmax(T& x, T y){if(x < y) x = y;}

int N;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> N;
    bool flag = false;
    if(N / 100 == 7) flag = true;
    N %= 100;
    if(N / 10 == 7) flag = true;
    N %= 10;
    if(N == 7) flag = true;
    cout << (flag ? "Yes" : "No") << endl;
    return 0;
}