#include <bits/stdc++.h>

#define FILE
#define fr first
#define se second

using namespace std;

const long long N = 2e5 + 7;
const long long inf = 1e9 + 7;
const long long mod = 1e9 + 7;

int main()
{
    ios_base::sync_with_stdio(false);

    string s;
    cin >> s;
    for(int i = 0; i < 3; i ++){
        if(s[i] == '7'){
            cout << "Yes\n";
            return 0;
        }
    }
    cout << "No\n";
}

