#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    string s;
    cin >> s;

    bool flag = false;
    for (char c : s) {
        if (c == '7') {
            flag = true;
            break;
        }
    }
    cout << (flag ? "Yes" : "No") << "\n";
}
