#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

#define ll long long

#define DEBUG (0)

int main()
{
  int N = 0;
  cin >> N;

  int x,y,z = 0;
  x = N/100;
  y = (N - (x *100))/10;
  z = N - (x*100 + 10*y);

  if(x == 7 || y == 7 || z == 7){
    cout << "Yes" << "\n";
  }else{
    cout << "No" << "\n";
  }
#if DEBUG
  cin >> x >> y >> z;
  cout << z << " " << x << " " << y << "\n";
#endif
}
