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

int main(void) {
  string n;
  cin >> n;
  bool ok = false;
  for (int i = 0; i < 3; i++) 
    	if (n[i] == '7') ok = true;
  cout << (ok ? "Yes\n" : "No\n");
  return 0;
}