#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
using VI = vector<int>;
using VB = vector<bool>;
using Graph = vector<vector<int>>;
using ll = long long;
using P = pair<int, int>;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  int n;
  cin >> n;

  vector<int> a;
  int value = n;

  int first = value % 10;
  value /= 10;

  int second = value % 10;
  value /= 10;
  int third = value % 10;

  if (first == 7 || second == 7 || third == 7){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

}