#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*/

int main()
{
  ll n;cin>>n;
  ll a=n%10;
  n=n/10;
  ll b=n%10;
  n=n/10;
  ll c=n;
  string ans= a==7 || b==7 || c==7 ? "Yes":"No";
  cout<<ans<<endl;
  return 0;
}
