

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

int main(){
  string S;
  cin >> S;

  bool result = false;
  for(int i=0; i<S.size(); i++){
    if(S[i] == '7'){
      result = true;
    }
  }
  if(result){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}