#include <bits/stdc++.h>

#define rep(i, a, b) for ( int i = (a); i < (b); i++ )
#define per(i, a, b) for ( int i = (b)-1; i >= (a); i--)
#define pb push_back
#define mp make_pair
#define bg begin()
#define en end()
#define all(v) (v).begin(), (v).end()
#define sz(v) (int)(v).size()


using namespace std;

typedef long long ll;

static const long long MOD = 1000000007;

int ans;

int main(void) {
    string n;
     cin >> n;
     rep(i, 0, 3) {
         if (n[i]=='7') {
             puts("Yes");
             return 0;
         }
     }

     puts("No");

	return 0;
}
