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

int main() {
  string n;
  cin >> n;
  bool flg = false;
  for(int i = 0; i < 3; i++){
    if(n[i] == '7') flg = true;
  }
  if(flg) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}