#include using namespace std; int N,K; int S[2<<17]; int C[390625]; int main() { cin>>N>>K; for(int i=0;i>s; int t=0; for(int j=0;j<8;j++) { t*=5; if(j>k&1) { c++; if(v[k]==0){ok=false;break;} t+=v[k]-1; } else t+=v[k]; } if(ok) { if(c>0&&c%2==0)now-=C[t]; else now+=C[t]; } } C[i]=now; } int ans=0; for(int i=0;i=2)ans++; cout<