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

#define ll long long
#define rep(i,N) for(ll i=0; i<N; i++)
const int mx = 2e5;


int main(void){

  int N;
  cin >> N;
  
  if(((N%10)==7) || ((N%100)/10)==7 || N/100==7){
    cout << "Yes";
  }else{
    cout << "No";
  }

  return 0;
}