#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
using namespace std;
const int MOD = 1000000007;
const ll INF = 1LL << 60;
int main() {
   cin.tie(0);
   ios::sync_with_stdio(false);
   string s;
   cin >> s;
   for(int i = 0;i < s.length();i++) {
       if(s[i] == '7') {
           cout << "Yes" << endl;
           return 0;
       }
   }
   cout << "No" << endl;
}