#include<bits/stdc++.h>
using namespace std;
# define ll long long
# define int long long  //comment it out when MLE
//# define endl "\n"
#define gok ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
# define mo 1000000009
# define pi acos(-1)
# define fi first
# define se second
using namespace std;


signed main()
{
    gok
    int n;
    cin>>n;
    bool ch=false;
    while(n!=0)
    {
        if(7==n%10)
            ch=true;
        n/=10;
    }
    if(ch)
        cout<<"Yes";
    else
        cout<<"No";











      return 0;
    }
