#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string N;
  cin >> N;
  
  int a = N.size();
  int count = 0;
  
  for(int i = 0; i < a; i++){
    if(N.at(i) == 7){
      count++;
    }
  }
  
  if(count > 0){
    cout << "Yes" << endl;
  }
  
  else{
    cout << "No" << endl;
  }
}