#include using namespace std; using ll=long long; int main(){ int n,q; cin>>n>>q; string s; cin>>s; vector> nxt(10,vector(n)); for(int i=0;i<10;i++){ int now=-1; for(int j=0;j>l>>r; l--; if(l+1==r){ if(s[l]=='0'||s[l]=='8')cout<<0< idx(3); for(int j=0;j<3;j++){ int now=r-1; for(int k=0;k