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

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

