#include <iostream>


using namespace std;


int main()
{
  int n;
  int a, b, c;
  cin >> n;

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