#include <bits/stdc++.h>
#define ll long long
#define rep(i,a,b) for(long long i=a; i<b; i+=1)
#define repr(i,a,b) for(long long i=a; i<=b; i+=1)
#define vec vector<ll>
#define map map<string,int>
#define repa(p,A) for(auto p:A)
#define pb push_back
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())

using namespace std;
int main() {
  ll N,a,b;
  cin>>N;
  a=N/10;
  b=N/100;
  
  bool answer=false;
  if(N%10==7) {
    ans=true;
  }
  if(a%10==7) {
    ans=true;
  }
  if(b%10==7) {
    ans=true;
  }
  if(ans)
    cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
