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

#define  BeatMeScanf    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define  tc(x)          int x; cin >> x; while(x--)
#define  ll             long long
#define  vi             vector<int>
#define  pii            pair<int,int>
#define  mii            map<int,int>
#define  inf            1<<28
#define  mem(x,y)       memset(x, y, sizeof(x))
#define  ps(x,y)        fixed<<setprecision(y)<<x
#define  show(val)      cout<< #val << " -> " << val << endl
#define  Case           cout<< "Case "<< ++cs << ": "
#define  all(v)         (v).begin(), (v).end()
#define  rall(v)        (v).rbegin(), (v).rend()
#define  mod            1000000007
#define MAX             1000


int main()
{
    BeatMeScanf;

    int n;
    cin >> n;
    bool flag = 0;

    while (n)
    {
        int x = n%10;
        if(x == 7)
        {
            flag = 1;
            break;
        }
        n /= 10;
    }

    if(flag == 1) cout<< "Yes" <<'\n';
    else cout<< "No" <<'\n';

    return 0;
}

