数8的个数
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn =1e5+10;
const int INF=0x3f3f3f3f;
char s[maxn];
int main(int argc, char const *argv[])
{
int n;scanf("%d",&n);
scanf("%s",s); int len=strlen(s);
map<int,int>mp;
int cnt1=0;int cnt2=0;
for(int i=0;i<n-10;i++)
{
if(s[i]=='8') cnt1++;
else cnt2++;
}
if(cnt1<cnt2) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
return 0;
}