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

int main() {
  int N,a,b,c;
  cin >> N;
  c = N % 10,a = N / 100,b = (N - 100 * a) / 10;
  if (a == 7 || b == 7 || c == 7) cout << "Yes" << endl;
  else cout << "No" << endl;
}