#include <bits/stdc++.h>

using namespace std;

int n;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cin >> n;
    bool ok = false;
    while (n > 0)
    {
        if (n % 10 == 7)
        {
            ok = true;
        }
        n /= 10;
    }
    cout << (ok ? "Yes" : "No");
    return 0;
}