#include "stdc++.h"
using namespace std;

#define get(a) scanf("%lld", &a);
#define print(a) printf("%lld",a)
#define println(a) printf("%lld\n",a)

#define do(a) for(long long i = 0; i < a; i++)
#define loop() for(;;) 
#define done return 0
string s;
long long n;

int main() {
    cin >> s;
    n = s.length();
    do(n) {
        if (s[i]=='7') {
            printf("Yes\n");
            done;
        }
    }
    printf("No\n");
    done;
}