#include <iostream>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <string.h>
#include <cmath>
#include <memory.h>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#define ll long long
using namespace std;

void solve() {
    string s;
    cin >> s;
    for (int i = 0; i < s.size(); ++i)
        if (s[i] == '7') {
            puts("Yes");
            return;
        }
    puts("No");
    return;
}

int main() {
    int t = 1;
    while(t--) {
        solve();
    }
    return 0;
}
