#include <bits/stdc++.h>
#define INF 1000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

int main()
{
  // ll N;
  // cin >> N;
  // ll ans;
  // cout << ans << endl;
  string N;
  cin >> N;
  bool ok = false;
  for (ll i = 0; i < 3; ++i)
  {
    if (N[i] == '7')
    {
      ok = true;
    }
  }
  if (ok)
  {
    cout << "Yes" << endl;
  }
  else
  {
    cout << "No" << endl;
  }
}
