#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}
const ll INF = 1LL<<60;
const ll M = pow(10,9)+7;
/*template*/
ll memo[100010];

int main()
{
  ll n;cin>>n;
  if(n%10==7){
    cout<<"Yes"<<endl;return 0;
  }
  n/=10;
  if(n%10==7){
    cout<<"Yes"<<endl;return 0;
  }
  n/=10;
  if(n%10==7){
    cout<<"Yes"<<endl;return 0;
  }
  cout<<"No"<<endl;
  return 0;
}
