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

#define rep(i, a, b) for(int i = (int)a; i < (int)b; i++)
#define repm(i, a, b) for(int i = (int)a; i > (int)b; i--)
#define all(x) x.begin(),x.end()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> P;
typedef pair<int,int> Pi;
#define MOD 1000000007

const int MAX_M = 100000;


int main(){
  //ll n; 
  string s;
  cin >> s;
  
  if((s.at(0) == '7')||(s.at(1) == '7')||(s.at(2) == '7'))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  
  //cout << n << endl;
}