#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <vector>

using namespace std;
using LLONG = long long;
const LLONG MOD = 1000000007;

int main()
{
    int N; cin >> N;
    if (N / 100 == 7)
    {
        cout << "Yes\n";
        return 0;
    }
    N %= 100;
    if (N / 10 == 7)
    {
        cout << "Yes\n";
        return 0;
    }
    N %= 10;
    cout << (N == 7 ? "Yes\n" : "No\n");
}
