#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include<algorithm>
#include<string>
#include <map>
#include <queue>
#include <stack>
#include <set>

#define INF 1e12
#define DIV 1000000007
using namespace std;
using ll = long long;

int main() {
    string N;
    cin >> N;

    bool flag = false;
    for (int i = 0; i < 3; i++) {
        if (N[i] == '7')
            flag = true;

    }

    if (flag)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;

}