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

int main() {
  int N;
  cin >> N;
  bool answer = false;
  if (N % 10 == 7 || (N % 100) / 10 == 7 || N / 100 == 7) {
    answer = true;
    if (answer) {
      cout << "Yes" << endl;
    }
  }
    else {
      cout << "No" << endl;
    }
}
