#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long

int main() {
  int N;
  cin >> N;
  string s = to_string(N);
  bool a = false;
  rep(i,3){
    if(s.at(i)=='7') a =true;
  }
  if(a) cout << "Yes";
  else cout << "No";
}
