#include<bits/stdc++.h>
using namespace std;

int main()
{
  string number;
  bool judge = false;

  cin >> number;

  int n = number.length();

  for (int i = 0; i < n; i++)
  {
    if (number[i] == '7')
    {
      judge = true;
    }
  }

  if (judge)
  {
    cout << "Yes" << endl;
  }
  else
  {
    cout << "No" << endl;
  }

  return 0;
}