#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define E "\n"

using namespace std;
const long long MOD = (long long)1e9 + 7;

string s;

int main()
{
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cin >> s;
    bool flag = false;
    for (int i = 0; i < 3; i++) {
        if (s[i] == '7') flag = true;
    }
    if (flag) cout << "Yes";
    else cout << "No";
    //system("pause");
    return 0;
}