#include <bits/stdc++.h>
using namespace std;
#define int long long 
#define alpha_size 26


int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr); cout.tie(nullptr);    

    string s;
    cin >> s;
    if (s.find('7') != string::npos)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
}


