#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  bool in = false;
  int Np = N;
  for (int i = 0; i < 3; i++){
    if (Np %10 == 7){
      in = true; break;
    }
    Np /= 10;
  }
  if (in) cout << "Yes" << endl;
  else cout << "No" << endl;
}
      
    