#include <bits/stdc++.h>
#include <string>
#include <iostream>
#include <iomanip>
using namespace std;
#define rep(i, N) for (ll i = 0; i < (N); i++)
typedef long long ll;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll N;
    cin >> N;
    string ans = "No";
    ll a, b, c;
    a = N;
    a /= 100;
    b = N % 100;
    c = N % 10;
    if (a == 7 || b == 7 || c == 7)
    {
        ans = "Yes";
    }
    cout << ans << endl;
}