#include<bits/stdc++.h>
#include<math.h>
#include<map>
using namespace std;

#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()



int main()
{
    int A;

    cin >> A;

    rep(i, 3)
    {
        if( A / 100 == 7 )
        {
            cout << "Yes" << endl;
            return 0;
        }
        else if ( A % 100 / 10 == 7 )
        {
            cout << "Yes" << endl;
            return 0;
        }
        else if ( A % 10 == 7 )
        {
            cout << "Yes" << endl;
            return 0;
        }
        else
        {
            cout << "No" << endl;
            return 0;
        }
        
    }



    
}
