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

int main() {
    int n;
    cin >> n;
    while(n > 0) {
        int r = n % 10;
        if(r == 7){
            puts("Yes");
            return 0;
        }
        n /= 10;
    }
    puts("No");
}