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

int main(){
  string N;
  cin >> N;
  bool judge = false;
  for(int i = 0; i < N.size(); i++){
    if(N.at(i) == '7') judge = true;
  }
  if(judge) cout << "Yes" << endl;
  else cout << "No" << endl;
  
}