#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;
  while (value)
  {
    a.push_back(n % 10);
    value /= 10;
  }
  for (auto i : a){
    if (i == 7){
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;
}