#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
//  cout << (N-N%100)/100 << (N%100-N%10)/10  << N%10 << endl;
  if(N-N%100==7 || N%100-N%10==7||N%10==7){
    cout << "Yes";
  }else {
    cout << "No";
  }
}
