#include <bits/stdc++.h>
using namespace std;
//NOT TO SUBMIT IN WRONG PLACE
//ABS, task 09, 2020/04/11
//ms, ac
/*
*/

int main(void){
  int N;

  cin >>N;

  if(N/100==7 || (N%100)/10==7 || N%10==7){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}
  return 0;
}
