#include <iostream>
#include <iomanip>
using namespace std;

void Main()
{
  string N;
  cin >> N;
  for (auto &s : N)
  {
    if (s == '7')
    {
      cout << "Yes" << endl;
      return;
    }
  }
  cout << "No" << endl;
  return;
}

int main()
{
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  Main();
  return 0;
}