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

int main() {
  int N;
  cin >> N;    
    
  int a;
  a= N%10;
  N = (N-a)/10;
  
  int b;
  b= N%10;
  
  N= (N-b)/10;
  int c;
  c= N%10;
  
  if(a==7 || b==7 || c==7){
    cout <<"Yes"<< endl;
  }
  else{
  
  cout <<"No"<< endl;
  }
  return 0;
  
}