#include <bits/stdc++.h>
using namespace std;
using lint = long long;

signed main(){
  string s; cin >> s;
  bool ok = false;
  for(lint i = 0; i < 3; i++){
    if(s[i] == '7') ok = true;
  }
  if(ok)cout << "Yes" << endl;
  else cout << "No" << endl;
}