//
#include<bits/stdc++.h>

using namespace std;

#define PB push_back
#define f first
#define s second

typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;

const int MOD = 1000000007;
const int INF = 1000000007;
const int MAXN = (int)3e5+1;

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n;
    cin >> n;
    if(n%10 == 7 || (n/10)%10 == 7 || (n/100) == 7)
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
    return 0;
}
