#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
#define INF LONG_LONG_MAX
#define MINF LONG_LONG_MIN
#define MAX_INT 100000
#define MOD 1000000007
#define forf(i,a,b) for(int i=a;i<=b;i++)

void solve()
{
    ll n;cin>>n;
    cin>>n;
    
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    n=n/10;
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    n=n/10;
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    cout<<"No";
    
}
    
    
int main()
{
    IOS;
    
    //ll t;cin>>t;while(t--)
        solve();
 
    return 0;
}