#include "bits/stdc++.h"
 
using namespace std;
typedef int64_t ll;
typedef vector<int64_t> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef pair<ll,ll> P;
typedef vector<P> vp;
typedef vector<double> vd;
typedef vector<vd> vvd;
#define rep(i,a,b) for(int i=(a);i<(b);++i)
#define SIZE(a) int((a).size())
int main(){
  int n;cin>>n;
  int a=n/100,b=(n-a*100)/10,c=(n-a*100-b*10);
  if(a==7||b==7||c==7){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}
}