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

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