#include <iostream>
#include <algorithm>
#include <string>
#include <unordered_map>
#include <deque>
#include <array>
#include <cmath>

using namespace std;

int main()
{
  int n;

  cin >> n;

  if (n / 100 == 7 || n / 10 % 10 == 7 || n % 10 == 7)
  {
    cout << "Yes";
  }
  else
  {
    cout << "No";
  }

  cout << endl;

  return 0;
}