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

int main() {
  int N:
  cin >>N;
  if(N-700 >=0 && N-700 <100){
    cout << "Yes" << endl;
  }
  else if(N%100 >=70 && N%100 < 80){
    cout << "Yes" << endl;
  }
  else if(N%10 == 7){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}
