#include<bits/stdc++.h>
#define int int64_t
using namespace std;

const int M = 1e9+7;

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    string n;
    cin >> n;
    if(n[0] == '7' || n[1] == '7' || n[2] == '7') cout << "Yes\n";
    else cout << "No\n";

    return 0;
}
