#include<bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define pb push_back
#define pii pair<long long,long long>
#define endl '\n'
bool solve()
{
    int n; cin>>n;
    while(n)
    {
        if(n%10==7)
        return true;
        n=n/10;
    }
    return false;
}
int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int test;test=1;
    while(test--)
    {
        if(solve())
        cout<<"Yes";
        else
        cout<<"No";
    }
    return 0;
}