#include<iostream>
using namespace std;
int main()
{
int N;
  cin >> N;
  int a, b, c;
  c = N%10;
  b = (N-c)/10%10;
  a = (N-10*b-c)/100;
  if(a == 7){
  cout << "Yes" << endl;
  }
  else if(b == 7){
  cout << "Yes" << endl;
  }
  else if(c == 7){
  cout << "Yes" << endl;
  }
  else{
  cout << "No" << endl;
  }
return 0;
}


