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

int main() {
  int C;
  string Num;
  cin >> Num;
  C = 0;
  
  for (int i = 0; i < 3; i++) {
    if (Num.at(i) == '7') {
      C = C + 1;
    }
  }
  
  if (C > 0) {
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}