#include <bits/stdc++.h>

#include <iostream>
using namespace std;
int main() {
  string N_str;
  cin >> N_str;
  bool lucky = false;
  for (auto ni : N_str) {
    if (ni == '7') {
      lucky = true;
      break;
    }
  }
  if(lucky){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  return 0;
}
