#include <iostream>
using namespace std;
using ll = long long;

int main() {
  string s;
  cin >> s;
  bool istrue = false;
  for(int i = 0; i < s.size(); i++) {
    if(s[i] == '7') {
      istrue = true;
    }
  }
  if(istrue) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
