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

int main() {
  string s;
  cin >> s;
  bool result = false;
  
  for (int i = 0; i < s.length(); i++){
    if (s.at(i) == '7'){
      result = true;
      break;
    }
  }
  
  if (result){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}