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

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