QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#863516#8830. Breaking Badgyydp123_LIMAC ✓18ms9648kbC++202.5kb2025-01-19 18:31:082025-01-19 18:31:09

Judging History

你现在查看的是最新测评结果

  • [2025-01-19 18:31:09]
  • 评测
  • 测评结果:AC
  • 用时:18ms
  • 内存:9648kb
  • [2025-01-19 18:31:08]
  • 提交

answer

#include<bits/stdc++.h>
#define For(i,j,k) for(int i=(j);i<=(k);++i)
#define ForDown(i,j,k) for(int i=(j);i>=(k);--i)
#define Debug(fmt, args...) fprintf(stderr,"(func %s, line #%d): " fmt,__func__,__LINE__,##args),fflush(stderr)
#define debug(fmt, args...) fprintf(stderr,fmt,##args),fflush(stderr)
#define within :
#define LJY main
using namespace std;
typedef long long ll;
const int N=1005;
mt19937 rnd(chrono::system_clock::now().time_since_epoch().count());
inline int read(){
  char ch=getchar();int x=0,f=1;
  while(ch<'0'||ch>'9'){if(ch=='-') f=-1;ch=getchar();}
  while(ch>='0'&&ch<='9')
    x=(x<<3)+(x<<1)+(ch^48),ch=getchar();
  return x*f;
}
int n,a[N][N],x[N],y[N],f[1<<10],g[1<<10],h[1<<10],ans;
int b[N][N],pn;
int calc(int x,int y){return ((x<<y)|(x>>5-y))&31;}
signed LJY(){
  n=read();For(i,1,n) For(j,1,n) a[i][j]=read();
  For(d,1,5){
    bool flg=0;
    For(j,2*d,n) For(k,2*d,n) 
      if((a[2*d-1][2*d-1]+a[j][k])%5!=(a[j][2*d-1]+a[2*d-1][k])%5){
        swap(a[2*d],a[j]);flg=1;
        For(t,1,n) swap(a[t][2*d],a[t][k]);break;
      }if(flg&&2*d<=n) continue;
    d=2*(d-1);int sum=0;// Debug("%d\n",d);
    // For(i,1,n){For(j,1,n) debug("%d ",a[i][j]);debug("\n");}
    For(j,d+1,n){
      x[j]=a[j][d+1];sum=(sum+x[j])%5;
      For(i,1,n) a[j][i]=(a[j][i]-x[j]+5)%5;
    }For(j,d+1,n){
      y[j]=(a[d+1][j]-a[d+1][d+1]+5)%5;sum=(sum+y[j])%5;
      For(i,1,n) a[i][j]=(a[i][j]-y[j]+5)%5;
    }f[0]=g[0]=1;
    // For(i,1,n){For(j,1,n) debug("%d ",a[i][j]);debug("\n");}
    For(i,d+1,n) ForDown(j,(1<<d)-1,0) For(k,0,d-1) if((j>>k)&1)
      f[j]|=calc(f[j^(1<<k)],a[k+1][i]),g[j]|=calc(g[j^(1<<k)],a[i][k+1]);
    For(S,0,(1<<d)-1) if(f[S]) For(T,0,(1<<d)-1)
      if(g[T]&&__builtin_popcount(S)==__builtin_popcount(T)){pn=0;
        // Debug("%d %d %d %d\n",S,T,f[S],g[T]);
        For(i,0,d-1) if(!(S&(1<<i))){pn++;int tmp=0;
          For(j,0,d-1) if(!(T&(1<<j))) b[pn][++tmp]=a[i+1][j+1];}
        // For(i,1,pn){For(j,1,pn) debug("%d ",b[i][j]);debug("\n");}
        For(i,0,(1<<pn)-1) h[i]=0;h[0]=1;
        For(i,1,pn) For(j,0,(1<<pn)-1) if(__builtin_popcount(j)==i)
          For(k,0,pn-1) if(j&(1<<k)) h[j]|=calc(h[j^(1<<k)],b[i][k+1]);
        int res=h[(1<<pn)-1],ret=0,s=0;
        For(i,0,4) if(f[S]&(1<<i)) ret|=calc(res,i);
        For(i,0,4) if(g[T]&(1<<i)) s|=calc(ret,i);ans|=s;
        // Debug("%d %d %d\n",res,ret,s);
      }ans=calc(ans,sum);
    For(i,0,4) if(ans&(1<<i)) putchar('Y');else putchar('N');
    return 0;
  }puts("YYYYY");
  return 0;
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 5716kb

input:

2
0 4
4 0

output:

YNNYN

result:

ok "YNNYN"

Test #2:

score: 0
Accepted
time: 1ms
memory: 5708kb

input:

2
1 1
1 1

output:

NNYNN

result:

ok "NNYNN"

Test #3:

score: 0
Accepted
time: 0ms
memory: 5644kb

input:

4
0 0 1 0
0 1 0 1
0 0 0 0
1 1 0 0

output:

YYYYN

result:

ok "YYYYN"

Test #4:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

4
0 0 0 1
0 1 0 1
1 0 0 0
0 1 0 0

output:

YYYYN

result:

ok "YYYYN"

Test #5:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
1 4 2 0 0 2 0 1 3 3
0 3 1 4 4 1 4 0 2 2
1 4 2 0 0 2 0 1 0 3
0 3 1 4 4 1 4 0 2 2
4 2 0 3 3 0 3 4 1 1
2 0 3 1 1 3 1 2 4 4
4 2 0 3 3 0 3 4 1 1
2 0 3 1 1 3 1 2 4 4
1 4 2 0 0 2 0 1 3 3
3 1 4 2 2 4 2 3 0 0

output:

NYNNY

result:

ok "NYNNY"

Test #6:

score: 0
Accepted
time: 0ms
memory: 5656kb

input:

10
4 4 4 1 3 4 1 4 3 0
3 3 3 0 2 3 0 3 2 4
3 3 3 0 2 3 0 3 2 4
4 4 4 1 3 4 1 4 3 0
2 2 2 4 1 2 4 2 1 3
2 2 2 4 1 3 4 2 1 3
4 4 4 1 3 4 1 4 3 0
3 3 3 0 2 3 0 3 2 4
2 2 2 4 1 2 4 2 1 3
4 4 4 1 3 4 1 1 3 0

output:

YYYNY

result:

ok "YYYNY"

Test #7:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

10
1 2 0 4 2 3 4 0 2 3
0 1 4 3 1 2 3 4 1 2
4 0 3 2 0 1 2 3 0 1
1 2 0 4 2 3 4 0 2 3
3 4 2 1 4 0 1 2 4 0
0 1 4 3 1 2 3 4 1 2
2 3 1 0 3 4 0 1 3 4
3 1 1 1 4 0 1 2 4 0
1 2 0 4 2 3 4 0 2 3
1 3 0 4 2 3 4 0 2 3

output:

NYYYY

result:

ok "NYYYY"

Test #8:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
3 4 0 3 2 2 0 4 0 2
0 1 2 0 4 4 2 1 2 4
2 3 4 2 1 1 4 3 4 1
0 1 2 0 4 4 2 1 2 4
0 1 2 0 4 4 2 1 2 4
0 1 2 0 4 4 2 1 2 4
3 4 0 3 2 2 0 4 0 2
0 1 2 0 4 4 2 1 2 4
3 4 0 3 2 2 0 4 0 2
0 1 2 0 4 4 2 1 2 4

output:

NYNNN

result:

ok "NYNNN"

Test #9:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
4 1 3 1 2 0 3 2 4 4
0 2 4 2 3 1 4 3 0 0
1 1 1 1 2 0 3 2 4 1
2 4 1 4 0 3 1 0 2 2
1 3 0 3 4 2 0 4 1 1
2 4 1 4 0 3 1 0 2 2
2 4 1 4 0 3 1 0 2 2
0 2 4 2 3 1 4 3 0 0
3 0 2 1 1 4 2 1 3 3
4 1 3 1 2 0 3 2 4 4

output:

YYYYY

result:

ok "YYYYY"

Test #10:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
1 2 0 2 4 2 3 1 2 1
4 0 3 0 2 0 1 4 0 4
0 1 4 1 3 1 2 0 1 0
0 1 4 1 3 1 2 0 1 0
3 4 2 4 1 4 0 3 4 3
4 0 3 0 2 0 1 4 0 4
0 1 4 1 3 1 2 0 1 0
0 1 4 1 3 1 2 0 1 0
3 4 2 4 1 4 0 3 4 3
0 1 4 1 3 1 2 0 1 0

output:

NNNYN

result:

ok "NNNYN"

Test #11:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

10
1 4 1 2 1 3 3 2 1 2
0 3 0 1 0 2 2 1 0 1
0 4 0 3 0 2 2 1 0 1
1 4 1 2 1 3 3 2 1 2
4 2 4 0 4 1 1 0 4 0
1 1 1 4 1 0 3 2 1 2
0 0 0 1 0 2 2 1 0 1
2 0 2 3 2 4 4 3 2 3
2 0 2 3 2 4 4 3 2 3
2 0 2 3 2 4 4 3 2 3

output:

YYYYY

result:

ok "YYYYY"

Test #12:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

10
1 2 0 1 4 0 1 2 2 2
1 2 0 1 4 3 1 2 2 2
0 1 4 0 3 1 0 1 1 1
1 2 0 1 4 3 1 2 2 2
3 4 2 3 1 4 3 4 4 4
0 1 4 0 3 1 0 1 1 1
4 0 3 4 2 0 4 0 0 0
3 4 2 3 1 4 3 4 4 4
4 0 3 4 2 0 4 0 0 0
0 1 4 0 3 1 0 1 1 1

output:

YNYNY

result:

ok "YNYNY"

Test #13:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

10
1 3 0 0 2 1 3 4 3 3
3 3 0 0 4 1 3 4 3 3
1 1 3 3 2 4 1 2 1 1
2 4 1 1 3 2 4 0 4 4
4 1 3 3 0 4 1 2 1 1
2 4 1 1 3 2 4 0 4 4
0 2 4 4 1 0 2 3 2 2
3 0 2 2 4 3 0 1 0 0
3 0 2 2 4 3 0 1 0 0
4 2 4 4 1 0 2 3 2 2

output:

YYYNY

result:

ok "YYYNY"

Test #14:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

10
2 0 3 1 3 0 0 0 4 1
1 4 2 0 2 4 4 4 3 0
2 0 3 1 3 0 0 0 4 1
1 4 2 0 2 4 4 4 3 0
1 4 2 0 2 4 4 4 3 0
3 3 4 2 4 1 1 1 0 2
3 1 4 2 4 1 1 1 0 2
4 2 0 3 0 2 2 2 1 3
3 1 4 2 4 1 1 1 0 2
1 4 2 0 2 4 4 4 3 0

output:

YNYNN

result:

ok "YNYNN"

Test #15:

score: 0
Accepted
time: 11ms
memory: 8660kb

input:

1000
3 4 1 2 4 1 0 3 0 4 1 4 3 1 4 4 1 0 1 2 3 1 0 1 3 4 4 0 3 0 3 2 2 1 0 4 1 3 3 0 3 1 3 2 2 0 3 3 2 2 3 0 4 2 1 2 1 2 1 4 2 4 1 4 2 4 3 2 0 3 0 4 2 1 2 3 3 0 2 0 3 3 1 1 0 3 4 3 2 0 4 0 3 4 4 2 3 4 2 3 4 2 1 3 2 2 4 1 0 2 2 4 0 1 2 0 4 1 3 2 3 2 2 2 1 4 4 4 2 0 0 4 4 1 3 4 0 2 2 3 1 1 3 2 3 2 3 0...

output:

NNNYN

result:

ok "NNNYN"

Test #16:

score: 0
Accepted
time: 15ms
memory: 8912kb

input:

1000
2 3 0 1 0 0 0 1 1 4 1 4 2 3 0 3 4 2 3 2 4 2 1 1 1 1 0 0 3 3 2 0 2 2 2 4 3 0 3 3 3 0 1 3 0 2 0 1 0 0 0 3 1 4 3 1 4 0 3 4 4 1 3 3 4 0 1 4 2 3 0 1 0 0 2 3 1 4 0 0 2 1 2 3 3 4 4 3 3 2 0 0 4 3 2 3 3 2 4 0 2 2 3 0 3 2 4 1 0 2 4 2 4 1 2 1 3 0 3 3 0 1 1 0 2 3 0 2 4 1 4 3 4 1 2 2 2 4 0 1 3 3 0 0 1 3 2 4...

output:

NYYYY

result:

ok "NYYYY"

Test #17:

score: 0
Accepted
time: 13ms
memory: 7760kb

input:

1000
3 3 2 2 0 1 0 1 0 4 3 3 2 2 4 3 0 1 3 0 1 3 4 2 1 3 4 3 0 1 2 1 4 4 2 4 1 1 3 0 0 2 2 0 1 1 2 1 4 2 0 1 0 0 1 3 0 2 0 3 1 2 1 0 3 2 1 4 4 0 3 1 2 4 0 2 3 4 3 0 1 0 0 3 4 2 4 2 3 1 3 1 4 3 0 2 2 1 3 2 3 2 4 2 4 4 3 1 2 0 4 4 3 4 2 2 3 4 0 1 4 3 1 3 0 0 2 2 0 0 2 0 4 0 1 0 1 3 1 2 0 4 2 3 4 3 2 2...

output:

NNYYY

result:

ok "NNYYY"

Test #18:

score: 0
Accepted
time: 15ms
memory: 8780kb

input:

1000
2 3 0 0 0 4 2 0 4 1 4 2 4 3 2 0 1 2 3 1 1 4 0 0 1 3 0 0 4 4 4 2 4 4 3 2 2 4 1 1 4 0 3 4 4 2 2 4 1 2 2 1 0 2 2 0 2 0 1 0 2 0 0 2 0 0 3 2 3 1 3 2 4 2 2 1 0 2 4 4 2 3 2 4 2 2 3 0 4 3 3 0 3 2 2 2 1 2 2 4 1 2 4 1 1 2 0 2 4 4 0 4 0 3 1 3 1 0 0 4 0 1 1 1 0 3 0 2 1 2 3 4 3 1 3 3 3 4 2 2 1 3 2 4 0 3 2 1...

output:

NYYYY

result:

ok "NYYYY"

Test #19:

score: 0
Accepted
time: 12ms
memory: 7632kb

input:

1000
3 3 2 0 1 1 4 3 3 1 1 2 2 2 2 1 2 4 1 2 4 0 2 1 0 2 2 4 4 2 1 0 1 0 2 2 1 4 2 1 0 1 3 1 0 0 3 4 3 0 2 4 2 0 4 0 0 0 0 4 4 2 0 3 4 1 2 1 1 3 1 0 3 3 1 2 1 3 3 0 3 4 3 0 3 4 4 4 1 1 4 3 0 2 3 3 2 1 0 2 0 3 2 0 3 4 4 3 0 0 0 1 3 1 2 0 1 2 4 2 4 3 0 1 4 0 1 3 1 3 1 0 4 2 2 1 2 4 2 1 4 2 0 1 1 0 1 4...

output:

NYYYN

result:

ok "NYYYN"

Test #20:

score: 0
Accepted
time: 11ms
memory: 9164kb

input:

1000
1 1 4 3 1 2 1 0 0 0 0 3 1 3 0 2 3 4 4 2 2 3 2 4 3 0 0 0 3 4 3 0 4 1 4 3 0 2 3 3 1 4 1 4 2 2 3 1 4 4 3 1 1 1 4 0 0 1 3 2 3 2 4 2 0 1 3 3 0 1 4 4 2 3 2 4 2 0 3 4 0 3 4 0 4 2 0 3 4 2 4 1 1 3 0 4 0 1 0 2 3 0 1 0 3 4 0 4 4 2 2 2 3 0 3 0 3 1 4 1 4 0 0 1 1 1 4 0 1 4 0 2 1 4 3 3 2 0 2 3 4 0 4 1 3 3 3 2...

output:

NYYNN

result:

ok "NYYNN"

Test #21:

score: 0
Accepted
time: 13ms
memory: 9608kb

input:

1000
1 4 1 4 4 4 2 4 0 2 2 0 1 0 4 3 0 3 2 4 0 0 1 0 4 3 4 4 1 1 4 2 2 4 0 0 4 3 1 4 3 1 0 0 3 1 2 1 2 4 4 4 1 1 3 2 0 3 3 2 2 2 0 3 4 1 3 4 3 0 4 3 2 0 3 1 0 2 4 0 1 4 3 2 3 0 2 3 2 1 0 3 3 0 1 2 1 1 4 1 0 2 3 2 1 1 3 2 0 3 2 1 3 3 2 1 0 3 0 4 2 2 0 1 1 4 1 1 2 2 4 0 3 3 3 4 2 0 3 1 2 2 3 4 1 0 1 1...

output:

YYYYN

result:

ok "YYYYN"

Test #22:

score: 0
Accepted
time: 14ms
memory: 8912kb

input:

1000
4 1 0 0 1 1 4 1 0 2 1 3 1 0 3 0 1 4 3 4 2 4 0 4 1 3 2 0 3 4 3 3 2 3 1 2 4 0 4 1 2 3 3 4 4 1 2 4 0 3 4 0 0 2 4 1 0 0 1 4 1 2 1 0 1 0 2 4 4 4 1 3 1 4 3 4 2 3 4 2 0 1 3 1 2 2 2 4 0 1 0 2 0 2 4 3 0 1 0 4 1 2 2 2 2 1 4 3 2 3 3 3 1 0 4 1 0 4 0 1 2 4 0 3 3 2 4 0 4 2 3 4 2 1 0 4 2 0 4 3 2 4 3 2 3 4 3 1...

output:

YYYYY

result:

ok "YYYYY"

Test #23:

score: 0
Accepted
time: 11ms
memory: 8396kb

input:

1000
0 2 1 2 3 4 0 2 3 3 0 0 4 4 2 2 2 0 3 2 4 4 3 0 2 1 1 0 0 1 4 2 3 0 1 2 3 2 4 1 0 1 3 2 1 0 4 0 3 0 1 0 4 2 0 1 4 2 0 1 4 2 2 4 1 2 3 0 1 0 4 2 2 2 4 3 4 4 4 4 2 0 1 3 2 3 0 0 2 1 3 2 2 2 1 0 1 2 2 3 3 3 2 1 0 1 4 0 1 0 3 1 0 2 4 3 1 1 2 1 2 2 4 1 3 3 2 1 0 3 2 0 2 1 0 0 2 1 4 0 4 0 1 0 3 2 1 2...

output:

NYNYN

result:

ok "NYNYN"

Test #24:

score: 0
Accepted
time: 11ms
memory: 7888kb

input:

1000
2 4 1 3 0 3 3 2 1 1 1 2 0 3 3 3 4 3 3 2 2 4 0 4 0 2 4 2 0 0 4 4 2 1 4 0 4 0 0 3 2 3 3 1 4 2 3 0 4 0 4 1 2 3 2 3 2 4 0 2 3 4 0 3 0 4 0 1 1 4 3 3 4 4 2 0 0 3 0 2 3 4 3 4 2 3 1 1 1 4 1 1 4 1 3 1 1 4 0 2 4 1 4 1 0 0 3 2 1 4 1 0 0 2 0 2 4 1 0 3 0 2 1 0 1 0 0 0 1 3 0 1 1 4 3 4 3 3 0 2 4 2 0 4 2 1 2 0...

output:

YNYNY

result:

ok "YNYNY"

Test #25:

score: 0
Accepted
time: 17ms
memory: 8144kb

input:

1000
3 3 4 4 3 1 1 3 0 1 1 4 0 2 3 4 3 3 3 1 4 4 4 4 0 0 0 4 2 2 0 3 1 3 2 0 3 1 0 1 0 0 4 3 4 1 1 0 1 1 1 1 3 3 2 1 2 2 1 2 2 2 1 0 0 0 4 1 4 3 1 2 3 4 2 3 1 4 0 4 4 0 1 2 1 3 4 1 3 1 4 2 0 3 4 4 3 3 4 1 1 2 1 1 3 0 3 3 4 3 3 3 1 1 1 1 0 4 1 1 0 0 4 1 0 3 3 2 4 1 4 4 0 3 3 0 3 3 3 0 2 4 3 0 2 3 0 2...

output:

YYYYY

result:

ok "YYYYY"

Test #26:

score: 0
Accepted
time: 13ms
memory: 8020kb

input:

1000
2 0 1 1 2 3 2 3 4 3 0 2 3 3 1 0 0 3 2 4 4 2 4 4 4 0 4 4 4 3 3 4 3 4 4 3 3 4 3 2 4 4 1 0 1 3 0 3 0 4 1 2 1 3 2 0 1 4 2 2 1 0 3 2 0 4 1 2 4 3 2 1 3 1 3 1 3 0 1 1 2 4 2 0 0 1 4 0 1 0 3 0 1 0 0 4 1 3 0 2 1 1 2 3 4 4 4 0 0 2 3 0 4 4 3 0 2 4 4 4 4 2 1 0 3 0 4 0 2 1 3 1 3 3 0 0 4 4 1 3 2 2 4 1 2 1 2 2...

output:

NYNNN

result:

ok "NYNNN"

Test #27:

score: 0
Accepted
time: 12ms
memory: 8144kb

input:

1000
2 0 2 0 3 2 1 3 1 3 1 4 1 4 4 0 3 0 0 1 0 2 0 2 2 2 0 2 0 0 3 4 4 0 2 3 4 3 1 0 0 3 4 1 2 0 2 2 3 0 0 0 3 2 3 1 4 3 1 4 0 0 0 3 4 0 0 0 1 3 0 3 1 3 0 3 3 4 3 0 2 4 3 2 1 2 0 4 2 3 4 1 3 2 2 0 0 1 4 4 1 1 1 0 0 3 4 0 1 4 2 0 2 1 4 1 2 3 1 1 2 1 4 4 0 0 0 0 1 3 4 1 4 3 3 4 2 1 4 2 4 1 4 2 0 2 4 1...

output:

YYNNN

result:

ok "YYNNN"

Test #28:

score: 0
Accepted
time: 11ms
memory: 8016kb

input:

1000
2 0 4 2 4 1 2 2 4 2 3 1 1 4 1 0 4 4 0 0 1 4 4 0 3 0 3 2 3 2 1 3 3 3 3 4 0 4 3 0 2 1 0 3 2 4 0 2 1 3 0 4 3 4 3 4 3 0 4 3 3 3 0 0 4 2 4 1 3 2 1 2 2 4 1 0 4 3 2 3 3 0 2 3 0 0 3 3 0 3 3 4 3 3 2 4 3 0 3 2 3 2 4 4 3 0 4 1 4 1 1 2 3 2 0 2 3 3 3 3 1 4 2 4 3 1 3 0 1 2 3 3 4 2 4 3 0 1 3 3 3 2 3 2 1 0 0 1...

output:

YNNNN

result:

ok "YNNNN"

Test #29:

score: 0
Accepted
time: 12ms
memory: 7424kb

input:

1000
1 0 2 0 4 3 1 1 3 2 4 1 4 0 3 4 2 0 2 3 2 3 0 2 2 1 3 3 1 2 0 1 4 2 1 1 0 3 3 2 2 0 2 3 0 0 1 0 3 3 4 1 3 2 3 3 2 2 4 0 4 3 2 3 1 1 1 4 4 1 0 1 1 3 0 0 4 0 3 3 2 0 0 0 1 4 4 1 4 3 3 3 1 2 2 4 3 3 4 3 0 2 0 4 3 1 1 4 1 0 4 0 0 3 4 4 1 1 2 2 3 2 0 1 4 1 0 3 3 3 4 3 3 3 0 1 2 3 1 2 2 1 4 2 0 3 2 4...

output:

NNYNN

result:

ok "NNYNN"

Test #30:

score: 0
Accepted
time: 12ms
memory: 9128kb

input:

1000
2 0 3 4 0 4 2 3 1 1 1 3 3 2 0 2 2 3 4 1 0 1 1 4 2 1 4 1 1 2 0 0 1 3 4 4 2 1 1 3 3 3 1 4 4 2 1 2 1 2 1 4 4 0 4 1 0 2 0 2 0 3 0 3 4 1 0 2 0 4 2 3 3 0 1 0 3 4 1 1 2 4 1 4 3 2 4 1 4 3 4 3 2 2 0 0 3 4 1 0 0 1 1 1 1 3 0 4 2 2 3 2 4 3 4 4 0 3 0 4 0 3 1 4 4 0 0 3 1 4 0 3 4 4 3 4 0 2 1 3 0 3 0 4 3 4 2 1...

output:

YNNYN

result:

ok "YNNYN"

Test #31:

score: 0
Accepted
time: 14ms
memory: 7628kb

input:

1000
1 3 1 3 1 1 0 1 1 3 0 2 4 4 4 0 3 1 2 1 0 1 2 0 4 2 4 4 0 1 4 1 1 3 0 4 3 4 0 0 3 4 4 0 3 4 3 0 3 2 0 1 3 2 3 0 1 0 2 2 1 2 2 1 4 1 2 0 0 4 1 3 1 0 3 2 2 2 2 4 1 2 2 0 0 1 1 4 0 2 3 1 0 4 3 1 2 2 3 2 0 4 0 2 0 2 2 4 1 2 1 1 1 4 3 0 3 4 0 4 2 1 3 2 0 4 1 2 3 1 0 2 2 0 1 2 2 3 1 0 4 2 0 4 3 3 0 3...

output:

NYNYY

result:

ok "NYNYY"

Test #32:

score: 0
Accepted
time: 9ms
memory: 7888kb

input:

1000
3 1 3 4 2 0 0 1 0 4 2 4 1 4 0 2 0 4 0 4 3 3 1 4 1 0 0 4 1 3 1 1 2 3 0 4 1 1 0 1 0 0 4 4 2 2 1 1 1 0 4 3 4 1 3 2 2 2 4 3 3 0 2 3 0 1 2 0 4 0 2 2 3 4 3 4 2 3 1 0 2 3 1 2 3 4 3 0 3 3 1 4 2 4 0 0 3 1 0 1 2 4 0 4 0 1 4 2 1 1 4 3 0 4 3 2 2 1 4 2 1 4 4 1 2 1 0 3 0 1 4 0 3 4 1 1 2 3 3 2 4 0 0 3 3 2 1 4...

output:

NYNNN

result:

ok "NYNNN"

Test #33:

score: 0
Accepted
time: 11ms
memory: 7636kb

input:

1000
4 4 1 1 0 1 2 3 0 1 0 1 3 4 3 4 1 4 1 3 3 1 0 1 3 4 4 4 1 0 3 1 2 1 2 0 2 3 4 1 1 2 0 3 2 2 0 2 3 4 2 4 3 2 3 2 2 4 4 3 3 2 0 2 1 0 3 1 2 2 4 1 4 1 0 3 3 1 2 0 2 1 1 1 3 2 2 1 1 4 1 2 0 2 3 3 0 1 0 0 2 1 4 4 4 2 0 3 1 4 1 0 3 4 2 2 0 2 2 0 2 2 3 2 3 0 0 1 0 4 3 2 2 3 1 4 2 4 3 1 2 1 3 2 3 3 1 4...

output:

YYNYN

result:

ok "YYNYN"

Test #34:

score: 0
Accepted
time: 18ms
memory: 9044kb

input:

1000
2 2 3 3 3 4 2 2 0 4 3 2 2 4 0 0 4 2 1 3 3 4 3 0 3 0 0 4 0 2 1 3 2 2 2 3 2 2 0 3 4 0 2 4 2 1 3 1 0 2 3 4 0 1 4 0 0 2 3 1 4 1 4 2 2 3 2 4 0 4 2 4 2 0 1 2 3 3 1 0 2 3 1 1 3 4 1 1 4 3 1 3 2 4 4 3 2 1 2 3 2 4 4 0 3 3 1 3 4 3 0 3 3 1 0 4 3 2 3 4 4 1 2 3 3 1 0 4 2 2 0 1 1 4 1 1 3 4 4 0 3 2 4 1 3 0 2 3...

output:

YYYYY

result:

ok "YYYYY"

Test #35:

score: 0
Accepted
time: 11ms
memory: 7764kb

input:

1000
1 3 4 1 4 3 3 4 2 2 4 2 2 1 1 4 0 1 1 0 0 4 0 0 2 2 1 2 1 2 2 0 3 2 1 1 4 4 3 1 0 4 0 4 2 3 2 0 3 3 3 3 1 4 4 1 2 2 3 3 1 2 4 2 3 4 1 4 1 3 4 1 0 3 0 1 1 2 3 2 1 3 2 3 4 0 1 2 0 0 3 3 4 3 0 0 2 3 1 2 2 3 0 1 4 1 4 2 3 2 3 3 1 3 3 2 3 1 2 1 0 3 3 4 1 4 1 4 1 0 2 4 1 2 4 0 1 2 4 0 3 2 0 2 0 2 3 1...

output:

YYYYN

result:

ok "YYYYN"

Test #36:

score: 0
Accepted
time: 16ms
memory: 7764kb

input:

1000
4 1 1 4 4 1 0 2 0 0 2 1 3 0 2 0 4 1 3 2 3 0 0 2 2 3 0 0 3 0 2 1 1 3 3 2 4 1 1 3 3 2 1 3 0 2 4 4 2 2 3 3 0 1 0 4 3 1 3 3 4 4 0 4 4 2 1 0 4 0 2 0 2 0 0 4 4 0 4 0 4 2 3 0 0 3 1 3 3 1 1 2 1 0 2 4 0 4 2 3 2 1 2 0 0 0 0 0 1 2 4 2 3 1 3 2 0 1 0 4 1 4 0 1 3 3 1 1 1 1 1 4 2 0 0 0 1 2 3 1 0 3 0 4 1 4 0 1...

output:

YYYYN

result:

ok "YYYYN"

Test #37:

score: 0
Accepted
time: 11ms
memory: 8232kb

input:

1000
4 1 4 0 1 3 1 0 0 1 2 4 2 0 0 3 2 1 4 2 2 2 0 0 1 0 1 4 1 2 4 2 4 1 1 3 3 4 1 3 3 4 2 1 0 2 1 1 2 0 0 1 0 0 4 3 2 4 1 1 3 2 0 2 4 3 4 2 3 3 2 4 4 1 1 4 0 1 3 1 1 3 1 4 2 3 0 3 0 1 0 3 1 1 4 1 2 4 1 1 0 0 3 4 3 2 3 3 2 0 2 2 3 0 4 3 1 4 3 1 0 2 0 2 3 0 0 4 2 4 4 4 0 4 4 1 1 3 0 3 2 0 4 2 0 3 1 3...

output:

NNYNN

result:

ok "NNYNN"

Test #38:

score: 0
Accepted
time: 3ms
memory: 7764kb

input:

571
0 0 3 4 0 3 0 0 1 4 1 3 1 1 0 3 3 0 0 1 1 0 0 1 3 1 0 0 0 1 0 0 1 2 0 1 3 4 3 0 0 0 2 0 4 2 4 1 0 0 0 3 0 4 3 1 1 1 3 4 2 2 1 2 2 4 0 2 4 0 1 0 0 3 3 3 0 0 1 2 4 4 3 1 1 0 1 4 0 2 4 2 4 0 3 4 2 4 2 0 2 2 3 3 1 2 4 3 1 4 0 0 2 2 4 3 4 0 4 4 4 2 2 4 4 0 3 4 1 0 1 1 2 4 2 0 3 3 1 3 1 1 1 2 2 1 1 0 ...

output:

NYNNN

result:

ok "NYNNN"

Test #39:

score: 0
Accepted
time: 3ms
memory: 7756kb

input:

415
1 0 4 0 1 2 3 4 1 3 4 1 3 0 0 4 4 2 2 1 4 3 0 2 2 1 2 2 1 2 3 3 1 2 1 1 0 2 3 3 1 3 2 4 1 2 2 4 4 2 0 1 1 1 1 0 1 1 2 3 4 4 2 1 2 4 2 4 0 3 2 0 1 4 0 4 1 0 1 1 4 3 2 0 3 0 0 1 4 0 3 2 2 2 1 2 0 2 2 4 1 0 3 1 0 0 2 4 2 0 4 3 0 3 1 0 2 4 2 2 1 3 3 2 1 4 0 2 4 3 3 2 3 2 1 2 2 1 4 0 2 0 0 2 1 4 3 2 ...

output:

YNYYN

result:

ok "YNYYN"

Test #40:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

260
2 3 2 1 1 1 0 3 2 4 1 0 4 3 4 0 1 3 4 4 0 2 1 0 1 0 2 1 2 4 2 0 3 0 2 4 1 3 2 1 2 1 0 1 2 0 3 2 0 3 3 2 0 2 2 1 1 0 0 0 1 3 3 1 0 3 1 2 4 2 3 1 3 4 1 0 2 2 2 1 1 2 1 4 1 0 4 2 4 0 0 2 2 0 3 4 0 2 0 3 2 1 1 1 0 4 3 1 4 0 4 4 0 0 3 4 2 1 1 3 0 3 0 4 4 4 0 3 3 4 1 1 4 2 4 1 1 0 2 0 0 1 2 1 1 3 4 0 ...

output:

YYYYN

result:

ok "YYYYN"

Test #41:

score: 0
Accepted
time: 1ms
memory: 5716kb

input:

104
1 3 0 3 0 0 4 3 4 1 4 4 3 1 3 1 3 3 0 2 1 2 1 1 3 4 0 3 2 1 0 2 1 4 4 4 3 0 2 4 0 4 0 1 0 2 0 0 0 1 1 0 2 4 3 1 2 1 4 3 4 3 3 2 0 0 0 4 2 2 4 3 4 0 4 2 3 2 3 3 3 4 1 4 4 1 3 2 3 4 0 2 1 4 0 4 0 2 3 0 2 1 2 0
4 1 3 1 3 3 2 1 2 4 2 2 1 4 1 4 1 1 3 0 4 0 4 4 1 2 3 1 0 4 3 0 4 2 2 2 1 3 0 2 3 2 3 4 ...

output:

YNYNN

result:

ok "YNYNN"

Test #42:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

52
2 4 2 0 3 4 1 3 0 3 4 4 1 3 2 0 0 3 1 0 1 0 3 2 3 4 4 2 1 3 3 1 3 2 2 2 1 1 3 3 3 3 2 3 1 2 1 2 1 0 3 2
4 1 4 2 0 1 3 0 2 0 1 1 3 0 4 2 2 0 3 2 3 2 0 4 0 1 1 4 3 0 0 3 0 4 4 4 3 3 0 0 0 0 4 0 3 4 3 4 3 2 0 4
4 1 4 2 0 1 3 0 2 0 1 1 3 0 4 2 2 0 3 2 3 2 0 4 0 1 1 4 3 0 0 3 0 4 4 4 3 3 0 0 0 0 4 0 3...

output:

NYYYY

result:

ok "NYYYY"

Test #43:

score: 0
Accepted
time: 11ms
memory: 8016kb

input:

897
4 4 1 4 2 0 3 0 3 4 4 4 3 3 1 1 4 0 1 3 3 2 3 0 4 0 1 3 4 2 0 0 3 4 1 0 2 3 3 1 4 1 1 0 2 4 4 3 2 0 1 2 0 0 0 0 0 3 4 1 3 0 0 2 0 2 2 4 1 2 1 2 0 4 2 1 2 1 0 3 1 1 1 4 3 2 3 3 2 1 0 1 4 1 4 2 0 4 4 1 0 0 1 0 4 1 2 1 1 2 2 3 2 2 0 4 1 3 0 1 2 1 1 3 1 1 2 3 3 4 0 0 0 0 4 1 1 0 1 3 1 0 4 3 3 2 0 1 ...

output:

YYNNY

result:

ok "YYNNY"

Test #44:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

275
0 4 4 2 2 3 2 4 3 1 0 0 2 4 3 3 2 3 0 4 2 1 4 3 1 0 4 0 1 1 2 0 0 2 4 1 3 2 2 4 4 1 0 0 0 1 4 3 1 4 2 4 3 0 0 4 4 1 2 3 1 0 1 2 1 3 1 1 1 3 3 0 3 0 0 4 2 3 1 2 1 0 4 2 0 2 4 3 2 2 1 4 4 2 4 3 0 4 2 4 0 4 0 0 3 0 3 0 2 2 1 3 4 1 4 0 2 4 4 1 0 3 0 2 1 3 4 4 4 4 1 3 2 4 2 1 2 1 3 3 2 1 3 2 2 2 0 2 ...

output:

YYYYN

result:

ok "YYYYN"

Test #45:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

120
2 0 1 4 0 3 4 4 4 4 0 0 3 3 4 4 0 3 1 0 4 0 1 3 3 4 3 3 4 4 2 2 2 3 2 4 2 3 3 4 2 3 1 1 4 4 0 4 3 3 4 4 1 4 3 1 3 4 0 0 4 3 4 4 2 2 1 3 0 3 0 2 1 2 0 1 0 0 0 0 3 1 4 3 3 4 1 1 3 2 0 3 4 2 2 2 0 1 1 2 2 0 3 0 1 0 1 3 0 0 2 4 1 4 2 4 0 0 3 1
2 0 1 4 0 3 4 4 4 4 0 0 3 3 4 4 0 3 1 0 4 0 1 3 3 4 3 3 ...

output:

NYNNY

result:

ok "NYNNY"

Test #46:

score: 0
Accepted
time: 0ms
memory: 7756kb

input:

260
3 2 0 2 2 3 1 1 2 1 2 0 2 0 0 3 4 0 4 0 2 2 3 1 2 4 3 2 2 2 2 1 2 1 3 0 3 4 1 3 1 4 0 3 4 2 0 0 3 3 3 1 1 0 4 4 2 1 3 1 4 4 2 1 1 3 0 1 4 4 3 3 1 3 0 4 2 2 1 1 1 3 1 3 3 3 0 0 0 3 3 2 1 1 2 4 2 3 0 4 3 2 1 1 4 4 2 0 1 2 1 1 0 3 3 3 2 1 4 2 2 1 2 0 3 2 0 1 2 2 4 4 4 2 3 3 3 1 1 2 4 2 1 0 1 2 3 0 ...

output:

NYYNN

result:

ok "NYYNN"

Test #47:

score: 0
Accepted
time: 3ms
memory: 7764kb

input:

616
4 0 1 0 0 3 1 2 0 3 2 4 2 0 2 0 1 1 0 4 0 0 0 3 0 3 3 2 1 0 2 1 3 4 2 3 2 2 0 1 2 4 0 1 4 2 2 2 1 2 3 0 4 4 4 4 0 1 2 1 4 0 1 2 2 3 0 4 3 4 0 4 0 3 4 1 0 0 3 1 4 3 2 4 1 1 4 0 0 3 0 2 1 0 1 1 0 3 2 3 0 2 3 0 3 3 3 4 0 4 4 2 2 0 1 2 0 3 3 0 1 4 0 2 2 1 3 1 1 3 3 3 2 1 3 2 2 3 4 3 1 1 0 0 2 0 2 3 ...

output:

NNYNN

result:

ok "NNYNN"

Test #48:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

461
3 0 2 0 1 3 0 0 4 3 0 3 0 2 4 4 4 3 0 3 0 4 2 1 4 1 0 3 0 2 3 1 0 1 3 4 3 1 1 2 3 3 0 1 4 1 1 4 0 3 3 1 1 0 4 4 2 1 4 0 1 2 0 2 4 0 2 0 4 2 1 3 2 2 3 2 3 4 4 3 1 3 2 1 1 2 3 0 3 0 0 1 4 3 3 4 3 0 4 3 4 1 3 3 0 1 0 1 4 4 4 0 1 1 3 3 2 2 2 4 2 3 2 0 3 4 0 4 2 3 1 2 2 0 3 2 4 2 1 0 0 0 2 2 4 4 1 4 ...

output:

YNYNY

result:

ok "YNYNY"

Test #49:

score: 0
Accepted
time: 5ms
memory: 7764kb

input:

601
3 2 0 3 4 1 2 1 0 0 4 2 4 3 3 2 1 0 3 2 0 2 4 2 3 1 1 1 0 4 4 0 2 4 1 2 2 2 0 1 0 3 3 2 3 4 0 0 4 2 0 0 4 1 0 3 0 2 2 1 4 1 3 2 4 2 4 4 0 2 3 0 1 3 3 0 1 0 1 2 4 4 3 1 4 1 2 1 4 0 1 1 0 1 0 0 4 4 2 2 4 0 1 3 2 4 4 3 3 1 0 1 3 4 2 3 0 1 1 3 2 3 1 4 2 0 0 0 1 3 1 1 2 0 1 0 0 0 4 0 3 1 2 0 1 4 1 3 ...

output:

YNYYY

result:

ok "YNYYY"

Test #50:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

445
3 2 1 1 1 0 1 4 2 3 1 0 3 0 1 2 2 1 2 3 4 1 3 2 3 3 4 0 3 0 1 2 2 4 2 0 4 3 1 2 0 2 2 2 0 4 4 3 4 1 2 0 2 3 4 2 2 0 2 1 2 1 4 0 0 0 1 3 2 0 3 2 3 3 0 0 4 0 1 4 2 4 3 3 2 1 0 2 2 0 1 2 3 3 2 4 2 4 3 3 4 3 1 0 4 1 3 4 0 2 0 4 3 0 4 3 1 2 3 2 4 3 2 2 4 4 3 2 4 0 2 3 2 0 2 2 2 4 0 3 4 3 3 2 4 1 1 0 ...

output:

YYNNY

result:

ok "YYNNY"

Test #51:

score: 0
Accepted
time: 5ms
memory: 5964kb

input:

586
0 3 1 0 1 0 3 1 0 3 3 0 4 3 1 0 1 3 2 0 3 3 1 1 2 0 4 4 1 4 1 1 3 2 0 0 0 0 3 4 0 0 2 0 3 3 1 0 2 2 2 1 1 0 2 0 1 2 2 4 2 2 2 4 4 1 3 4 2 2 1 0 4 1 1 4 4 3 0 1 4 1 4 1 2 2 3 1 0 2 4 3 0 1 3 3 0 2 3 1 4 0 4 3 4 3 1 3 1 2 1 2 4 2 4 4 0 4 4 1 0 4 2 0 0 3 0 0 0 2 0 1 2 1 1 2 3 3 1 4 4 1 4 4 0 2 2 0 ...

output:

YYNNN

result:

ok "YYNNN"

Test #52:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

134
0 2 3 1 2 0 2 1 0 0 1 3 2 3 4 0 3 2 1 0 2 4 2 0 3 3 3 3 4 2 4 4 4 3 2 3 0 0 0 2 2 4 4 0 3 4 1 1 1 0 3 3 0 3 3 1 0 4 0 2 1 2 2 3 1 0 1 0 0 1 4 1 2 1 4 0 0 4 1 3 2 2 0 3 0 3 1 0 4 0 0 4 0 3 0 3 2 1 4 3 3 0 0 2 0 2 1 2 4 4 2 3 1 4 3 2 3 4 4 1 4 2 4 4 2 4 3 1 3 2 2 4 0 1
0 2 3 1 2 0 2 1 0 0 1 3 2 3 ...

output:

YNNYN

result:

ok "YNNYN"

Test #53:

score: 0
Accepted
time: 12ms
memory: 9172kb

input:

1000
3 4 1 2 4 1 1 3 4 1 1 3 4 3 2 0 2 1 3 2 4 3 0 1 0 3 1 1 0 2 1 1 0 0 2 2 2 0 0 0 0 4 3 1 0 4 0 2 2 2 0 0 3 0 4 1 2 1 2 1 4 1 1 1 0 3 1 3 4 2 0 1 1 0 3 4 2 3 2 2 1 3 4 2 3 3 3 4 1 1 1 4 2 4 1 0 0 0 0 0 1 3 4 2 3 2 4 0 1 2 1 4 3 1 4 4 1 3 0 0 1 0 3 3 0 4 0 4 2 4 3 4 2 2 4 2 4 2 2 1 3 2 3 3 4 1 0 0...

output:

NYYNN

result:

ok "NYYNN"

Test #54:

score: 0
Accepted
time: 11ms
memory: 9292kb

input:

1000
4 1 2 1 2 4 0 2 4 1 2 0 2 2 3 2 4 0 1 0 4 4 0 4 2 1 1 0 3 3 4 2 1 1 3 4 4 0 0 1 2 1 0 1 2 0 2 2 1 2 2 4 4 2 3 3 3 2 1 2 3 3 0 1 0 3 3 4 3 0 0 1 0 3 1 3 3 1 1 3 4 2 2 0 1 4 1 2 3 4 0 2 2 2 3 2 2 3 4 0 4 1 4 1 1 4 3 3 0 4 0 4 1 4 3 3 4 4 2 4 1 4 0 3 1 0 4 2 3 1 4 0 4 1 4 0 4 2 1 4 2 2 1 1 4 1 2 2...

output:

NNYNN

result:

ok "NNYNN"

Test #55:

score: 0
Accepted
time: 11ms
memory: 9552kb

input:

1000
3 1 1 4 2 1 0 2 0 0 2 2 0 1 0 4 1 1 1 2 0 4 1 1 0 0 1 2 3 2 3 1 0 0 3 2 0 3 2 4 0 0 4 1 1 1 1 4 3 2 0 2 4 4 4 1 4 0 4 3 4 1 3 4 1 3 0 2 0 0 2 2 0 2 1 1 2 4 2 1 4 1 3 1 3 3 1 4 1 2 1 2 4 4 0 4 1 1 0 2 4 1 1 3 1 4 0 3 3 4 1 4 3 2 1 3 2 3 2 3 2 4 0 2 0 1 1 1 4 0 0 0 3 2 2 2 1 4 3 3 2 1 1 2 0 3 0 2...

output:

NYYNN

result:

ok "NYYNN"

Test #56:

score: 0
Accepted
time: 12ms
memory: 7888kb

input:

1000
2 1 2 3 3 2 0 3 4 4 1 2 1 2 2 0 1 4 1 2 2 1 3 3 0 4 1 3 3 3 4 4 0 4 2 1 2 4 4 4 2 0 2 1 4 4 1 0 0 4 3 0 1 3 2 0 1 2 2 1 1 3 4 1 0 0 0 1 2 4 4 0 4 1 2 2 2 3 1 2 0 0 1 2 0 3 2 4 3 4 3 3 2 4 1 0 2 4 1 0 1 1 2 1 0 4 4 2 3 0 1 4 2 0 1 0 2 1 4 0 1 0 4 3 4 4 4 1 4 0 2 0 0 0 1 0 4 3 2 4 1 1 2 4 3 3 2 2...

output:

YYNNY

result:

ok "YYNNY"

Test #57:

score: 0
Accepted
time: 15ms
memory: 9044kb

input:

1000
2 0 1 2 3 1 3 4 3 1 4 1 1 3 3 2 1 1 2 3 2 1 4 1 4 3 1 4 3 2 2 0 0 4 1 3 0 3 0 1 2 0 1 1 3 2 0 3 2 1 0 4 0 0 2 4 2 4 1 3 2 4 4 4 1 2 2 3 1 3 0 1 1 3 3 1 0 1 1 3 2 1 3 3 2 1 3 3 4 1 1 1 0 2 4 2 0 1 2 1 1 0 2 4 0 3 3 4 3 1 2 4 3 4 1 0 1 0 4 0 2 0 2 0 4 4 4 0 2 4 2 4 0 0 0 3 2 0 4 2 4 2 4 0 2 3 0 0...

output:

YNYYN

result:

ok "YNYYN"

Test #58:

score: 0
Accepted
time: 16ms
memory: 9552kb

input:

1000
0 1 2 3 0 2 3 1 1 2 1 0 3 1 4 2 0 4 0 1 4 4 2 3 4 0 3 3 0 2 0 3 2 1 4 0 2 3 1 4 0 0 0 2 0 0 1 2 0 3 0 3 1 4 0 1 0 0 0 1 3 3 3 4 0 0 2 2 4 4 1 2 4 4 3 0 1 1 0 3 4 0 0 4 4 3 0 3 4 3 3 3 4 3 1 3 1 4 1 4 3 1 4 2 3 0 3 4 2 2 4 0 1 2 1 2 2 2 3 2 1 0 4 3 1 4 1 2 2 3 1 0 3 2 3 1 0 3 0 2 3 3 1 3 2 3 4 0...

output:

YYNNY

result:

ok "YYNNY"

Test #59:

score: 0
Accepted
time: 14ms
memory: 8916kb

input:

1000
1 4 4 4 3 4 0 0 4 0 4 3 4 1 0 2 3 4 2 4 3 1 1 0 0 0 2 4 1 1 4 3 1 4 1 1 1 4 4 3 4 3 1 1 1 0 1 4 0 1 2 4 4 0 0 1 0 1 4 0 3 3 1 3 2 3 2 0 3 0 2 1 3 4 2 2 3 0 1 0 3 3 1 3 4 1 0 3 3 4 2 3 3 3 2 3 3 4 1 3 1 3 3 3 1 0 4 1 4 2 3 4 2 0 3 2 4 2 3 4 1 4 1 4 0 3 2 4 2 4 3 4 2 2 0 4 1 4 0 1 3 0 0 2 1 4 3 0...

output:

NNYNY

result:

ok "NNYNY"

Test #60:

score: 0
Accepted
time: 12ms
memory: 8660kb

input:

1000
2 4 1 2 1 0 2 0 2 3 2 4 2 1 4 2 1 2 1 2 2 3 4 1 2 2 4 3 4 1 4 1 2 1 2 0 0 4 4 3 0 4 1 2 1 4 3 3 4 4 2 3 1 0 3 1 4 2 2 3 1 1 3 4 1 4 1 4 0 1 3 4 1 0 2 4 4 4 3 1 1 1 3 4 0 3 2 3 4 4 0 4 3 0 0 1 4 4 4 0 4 1 0 4 0 2 3 2 3 4 3 4 2 3 0 3 4 4 4 2 0 4 4 4 3 3 4 4 2 1 0 3 4 4 4 2 0 3 0 0 1 1 3 1 1 4 3 0...

output:

YNYYN

result:

ok "YNYYN"

Test #61:

score: 0
Accepted
time: 11ms
memory: 8268kb

input:

1000
2 1 2 3 1 2 3 4 2 0 1 3 4 0 1 4 3 1 4 1 4 0 3 2 3 2 2 2 2 0 1 1 0 1 1 1 3 0 1 3 3 1 2 4 2 2 4 3 2 2 1 3 4 4 2 1 3 2 1 4 4 0 4 0 0 1 2 4 4 1 3 2 2 4 3 1 0 1 3 0 4 0 3 3 1 1 2 4 1 3 3 0 0 0 4 4 0 2 2 0 2 2 0 3 2 3 3 3 3 1 4 4 2 1 1 1 0 2 2 1 4 0 4 4 0 1 1 0 3 0 4 2 4 3 4 3 4 3 4 1 0 3 2 4 1 2 1 4...

output:

NNYNN

result:

ok "NNYNN"

Test #62:

score: 0
Accepted
time: 16ms
memory: 7636kb

input:

1000
4 3 4 4 0 3 4 1 3 2 4 1 4 4 1 0 2 2 0 2 3 4 1 1 4 4 0 2 4 1 3 2 3 4 0 3 1 2 3 3 1 2 3 1 3 1 0 3 2 3 3 3 4 4 3 3 3 0 4 3 2 4 0 1 0 4 1 0 1 3 0 1 0 2 3 2 2 1 2 1 1 2 1 0 0 0 4 1 4 2 2 2 2 2 2 2 4 3 1 3 4 3 3 3 2 0 0 4 1 0 3 4 3 4 2 3 3 4 4 4 4 3 4 4 0 2 0 1 2 0 2 0 1 3 4 2 4 2 1 4 3 3 1 3 0 3 2 2...

output:

YYYYY

result:

ok "YYYYY"

Test #63:

score: 0
Accepted
time: 16ms
memory: 9552kb

input:

1000
2 4 4 1 3 1 0 0 3 2 1 2 4 2 3 0 4 1 4 2 0 2 0 0 3 3 1 2 0 3 3 1 1 0 0 4 0 3 3 3 3 0 3 3 3 1 0 0 2 1 2 3 2 4 2 0 0 0 3 1 0 2 0 3 3 1 1 0 4 1 4 0 4 2 3 3 2 2 3 2 4 2 0 4 3 3 1 2 3 1 0 0 2 1 3 0 1 2 0 3 4 0 0 4 0 4 1 1 2 2 1 0 3 2 0 3 0 4 3 0 3 4 3 0 1 4 0 2 2 3 0 2 4 0 4 3 4 2 1 4 2 0 4 4 4 2 3 0...

output:

YNNYY

result:

ok "YNNYY"

Test #64:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

351
0 0 4 0 1 0 1 0 3 3 0 3 2 1 2 3 4 3 0 0 3 3 2 0 3 0 4 0 4 0 0 4 3 4 3 3 0 0 2 2 3 0 0 0 1 3 3 1 2 2 0 3 2 2 3 2 2 3 2 3 3 3 0 4 0 4 3 3 4 3 4 0 4 3 3 0 2 1 1 2 4 4 1 1 3 3 4 1 1 2 2 4 1 2 4 1 1 1 4 1 4 4 3 4 3 3 1 1 2 3 3 3 0 4 0 0 4 0 0 3 1 1 3 0 1 1 4 1 0 2 3 3 2 3 2 3 1 4 0 3 4 4 3 3 2 0 2 0 ...

output:

NNYNN

result:

ok "NNYNN"

Test #65:

score: 0
Accepted
time: 3ms
memory: 7764kb

input:

491
1 3 2 1 3 0 1 4 0 0 4 1 3 4 2 4 0 2 2 2 4 3 3 1 0 4 2 1 4 2 0 1 1 4 4 0 4 4 3 2 0 4 3 1 4 0 3 4 2 0 0 3 3 0 2 2 3 4 4 4 1 3 1 3 0 4 4 4 1 2 4 0 1 3 1 0 2 3 1 2 1 3 2 1 2 0 3 2 1 0 0 3 0 1 2 0 1 0 0 2 4 3 4 3 0 2 0 3 2 0 3 3 0 1 1 3 0 3 4 1 4 0 1 1 4 1 3 4 3 0 3 3 0 4 3 1 1 4 2 0 0 0 1 2 3 0 0 2 ...

output:

YYNNN

result:

ok "YYNNN"

Test #66:

score: 0
Accepted
time: 1ms
memory: 7760kb

input:

335
3 1 0 1 3 0 0 1 3 4 1 2 0 3 2 2 1 1 0 1 3 4 1 0 4 4 3 3 0 2 0 3 0 3 4 0 4 4 4 3 0 3 3 4 1 4 4 4 0 1 2 0 0 2 1 4 0 0 0 2 2 0 4 2 0 0 4 0 1 4 3 4 1 2 3 0 3 1 0 3 2 3 4 1 2 0 1 2 3 2 4 3 2 3 3 0 1 2 1 3 2 0 4 4 0 3 3 0 3 0 2 0 0 0 4 2 0 1 1 4 1 1 1 3 0 0 3 2 3 3 3 4 0 1 0 0 2 3 1 2 0 2 0 3 4 1 2 3 ...

output:

NYYYN

result:

ok "NYYYN"

Test #67:

score: 0
Accepted
time: 2ms
memory: 5712kb

input:

180
2 1 2 0 0 4 3 4 2 2 4 1 1 0 4 2 3 3 4 3 1 2 1 4 0 3 2 0 4 3 2 4 4 4 0 1 1 3 1 1 0 1 2 2 4 4 4 2 4 4 2 0 1 4 4 2 0 0 1 1 4 0 0 1 0 1 1 4 0 2 4 4 3 1 0 0 1 1 0 0 1 2 2 0 2 2 3 1 2 0 3 1 2 4 4 4 4 2 2 3 0 3 1 2 4 1 4 4 0 0 3 4 0 3 1 4 2 1 2 4 2 4 2 2 2 4 1 0 1 2 0 1 1 3 1 2 4 3 3 4 4 3 3 0 3 4 2 1 ...

output:

YYYNY

result:

ok "YYYNY"

Test #68:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

24
0 3 0 1 3 0 0 0 1 0 3 0 2 1 3 4 0 4 2 1 2 1 0 1
2 0 2 3 0 2 2 2 3 2 0 2 4 3 0 1 2 1 4 3 4 3 2 3
0 3 0 1 3 0 0 0 1 0 3 0 2 1 3 4 0 4 2 1 2 1 0 1
1 4 1 2 4 1 1 1 2 1 4 1 3 2 4 0 1 0 3 2 3 2 1 2
2 0 2 3 0 2 2 2 3 2 0 2 4 3 0 1 2 1 4 3 4 3 2 3
1 4 1 0 4 1 1 1 2 1 4 1 3 2 4 0 1 0 3 2 3 2 1 2
0 3 0 1 3...

output:

YNYNN

result:

ok "YNYNN"

Test #69:

score: 0
Accepted
time: 10ms
memory: 8652kb

input:

869
4 1 3 3 0 4 0 1 2 2 3 1 0 0 2 1 3 4 2 3 4 1 2 3 4 2 1 3 0 3 4 1 0 1 3 4 0 2 2 2 1 3 2 4 4 1 4 2 2 3 0 0 3 2 1 4 1 1 1 1 3 3 4 4 4 0 4 0 2 2 3 4 1 4 3 0 4 3 1 3 2 4 0 0 3 2 4 0 3 4 2 1 3 3 0 0 1 2 3 4 2 0 0 1 2 3 0 0 3 3 1 1 1 4 4 2 2 1 2 0 1 0 2 1 3 4 4 0 4 3 0 1 3 1 1 3 4 3 1 3 0 4 1 2 4 1 2 0 ...

output:

YYNYN

result:

ok "YYNYN"

Test #70:

score: 0
Accepted
time: 6ms
memory: 8400kb

input:

817
0 1 3 0 3 3 4 2 3 4 1 0 4 3 4 1 0 4 1 0 2 2 2 1 0 4 3 0 2 0 0 3 3 2 1 0 4 1 0 1 2 2 3 1 4 1 4 1 0 1 1 4 1 2 2 0 0 1 4 2 0 3 2 3 2 3 2 0 0 1 4 4 2 0 2 1 1 4 2 3 0 3 1 3 1 4 1 0 2 4 2 4 3 0 4 1 0 1 4 4 3 3 2 0 3 1 3 2 3 3 3 0 2 0 2 4 0 2 0 2 3 3 4 0 0 4 3 0 2 4 2 3 4 0 3 2 2 3 2 2 2 0 4 1 3 0 1 2 ...

output:

YYYYY

result:

ok "YYYYY"

Test #71:

score: 0
Accepted
time: 5ms
memory: 7760kb

input:

661
3 4 4 0 1 4 4 4 0 1 4 1 0 3 1 2 4 2 3 1 0 4 0 4 0 1 0 2 0 0 1 2 2 0 1 1 4 4 2 2 2 3 3 1 2 1 3 0 3 2 0 3 1 3 0 2 1 0 4 0 1 3 1 0 4 0 2 1 1 2 4 2 1 2 3 1 4 3 1 3 0 1 4 1 1 0 3 3 0 1 1 0 0 1 3 4 2 2 4 1 0 0 0 3 4 4 4 2 4 4 3 2 1 0 1 4 2 4 2 0 0 1 4 3 0 3 0 1 2 4 3 1 1 4 4 0 3 1 2 3 2 2 0 2 2 1 0 2 ...

output:

NYNYY

result:

ok "NYNYY"

Test #72:

score: 0
Accepted
time: 3ms
memory: 7760kb

input:

506
0 1 4 4 1 2 1 3 1 1 2 4 4 0 3 0 0 0 0 3 3 1 0 0 0 2 2 3 2 1 2 0 2 0 2 4 1 0 3 2 3 3 1 0 4 2 0 3 4 4 3 3 3 2 3 2 0 2 3 4 3 2 1 0 4 2 0 1 4 1 3 2 2 3 0 1 3 3 1 1 0 0 4 2 3 1 0 0 3 4 0 1 3 4 0 3 4 1 3 2 4 4 0 1 1 4 2 4 1 4 4 1 2 2 0 2 4 4 4 4 2 3 0 2 1 2 3 0 4 2 4 3 3 2 0 2 1 1 4 1 1 3 2 0 0 3 2 4 ...

output:

NYNNN

result:

ok "NYNNN"

Test #73:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

350
2 2 3 2 0 1 3 3 3 3 2 2 2 3 1 3 2 0 1 4 0 2 4 1 2 1 3 1 4 3 1 2 1 3 0 1 0 1 1 1 4 3 3 1 3 4 1 0 3 3 0 1 1 0 1 2 0 4 2 4 2 3 3 1 1 0 3 0 2 1 1 3 4 4 2 3 1 4 0 4 3 2 4 3 4 4 1 0 3 3 2 4 3 2 3 4 4 2 1 3 1 4 2 1 2 4 2 1 1 2 4 1 4 0 3 4 2 0 1 1 3 1 3 2 1 3 2 2 2 4 0 2 0 2 3 1 1 0 2 1 4 4 1 2 1 2 3 2 ...

output:

YYYYY

result:

ok "YYYYY"

Test #74:

score: 0
Accepted
time: 6ms
memory: 7712kb

input:

728
0 0 2 3 2 2 1 3 0 0 4 2 1 1 1 0 3 0 1 0 4 0 3 0 3 0 3 0 3 4 2 4 0 2 4 4 3 0 4 1 4 1 1 3 3 1 1 1 4 4 3 3 0 4 2 0 1 1 0 2 2 4 2 2 4 1 2 3 4 0 1 2 4 4 4 2 3 3 2 0 4 2 2 2 2 3 3 4 1 2 1 0 0 4 3 1 1 1 2 3 2 0 3 0 3 0 2 2 4 2 0 2 2 1 2 1 4 2 4 0 1 1 0 4 3 0 0 3 4 2 2 2 2 4 1 3 2 1 1 2 1 1 2 2 2 1 1 2 ...

output:

NYYYN

result:

ok "NYYYN"

Test #75:

score: 0
Accepted
time: 3ms
memory: 5716kb

input:

381
2 0 4 4 4 0 4 4 2 3 3 2 1 2 1 3 0 2 0 3 3 3 0 1 1 1 3 1 3 2 0 1 4 2 0 2 1 4 3 4 2 1 1 1 3 2 3 3 2 3 0 0 3 2 3 1 4 2 4 4 0 2 3 2 4 4 3 0 3 0 3 4 4 0 0 3 4 0 4 4 2 0 4 4 0 0 4 0 2 2 3 3 0 0 0 0 2 1 1 1 4 1 0 2 2 4 4 0 3 0 1 2 4 1 1 4 3 2 0 4 0 4 2 2 1 1 0 3 4 2 1 2 0 4 1 2 3 3 0 3 4 1 1 1 2 1 0 0 ...

output:

NNNYY

result:

ok "NNNYY"

Test #76:

score: 0
Accepted
time: 8ms
memory: 8400kb

input:

1000
0 4 4 4 1 2 2 2 2 0 3 2 0 3 0 2 2 4 0 4 1 1 1 1 4 2 0 3 1 0 4 2 4 1 2 0 2 1 4 1 3 0 2 4 4 0 2 0 0 0 2 1 4 2 3 2 2 2 0 2 4 0 1 3 4 4 0 0 0 2 2 1 3 0 4 2 1 4 2 3 2 4 3 1 2 1 2 4 4 4 4 2 2 0 2 4 4 0 4 2 1 2 1 2 1 0 2 2 3 2 3 1 2 1 2 3 2 2 1 2 2 1 2 1 4 0 3 1 3 0 4 3 3 0 4 2 1 4 0 2 3 3 1 3 2 4 3 0...

output:

NNYNN

result:

ok "NNYNN"

Test #77:

score: 0
Accepted
time: 9ms
memory: 8876kb

input:

1000
1 2 0 3 3 3 3 0 2 1 4 3 3 2 3 3 4 3 4 3 3 2 3 1 0 2 2 2 2 4 1 0 4 3 1 0 4 1 3 0 4 2 1 4 4 4 1 0 3 2 1 0 0 2 3 0 1 2 3 0 2 3 2 3 3 4 4 4 3 0 1 2 1 2 4 3 1 0 0 0 3 1 2 3 1 2 3 4 2 3 1 4 3 4 4 3 4 0 0 0 0 3 0 4 2 0 1 1 3 2 2 1 0 3 3 2 2 4 4 0 0 3 2 1 1 4 4 2 4 0 1 1 4 3 0 2 4 4 2 2 2 4 4 1 1 1 0 0...

output:

NYNNN

result:

ok "NYNNN"

Test #78:

score: 0
Accepted
time: 10ms
memory: 7756kb

input:

1000
2 4 3 0 0 0 0 2 3 4 4 1 4 2 3 0 3 1 4 2 2 0 3 0 3 2 2 3 1 1 3 0 4 2 4 1 0 0 0 3 3 4 3 3 0 3 0 1 4 0 3 1 0 4 3 2 0 3 4 1 2 4 3 0 4 3 0 1 1 3 4 2 2 0 3 1 4 2 2 2 4 3 1 1 1 0 4 0 1 4 0 2 1 2 1 1 2 0 1 0 3 0 3 2 3 4 0 3 2 2 1 0 1 2 2 2 4 2 2 3 1 1 1 0 1 3 4 0 3 4 1 4 2 1 1 2 4 0 0 4 0 1 2 0 1 3 1 1...

output:

NYNNN

result:

ok "NYNNN"

Test #79:

score: 0
Accepted
time: 11ms
memory: 9300kb

input:

1000
1 0 4 2 4 2 1 1 2 2 1 0 1 2 0 1 4 1 3 0 2 4 2 1 3 2 4 3 4 4 4 2 2 4 3 3 4 1 2 2 1 1 3 2 2 2 3 2 2 4 3 1 0 3 3 0 0 0 2 4 4 3 1 3 3 1 1 1 0 3 3 0 3 4 3 3 0 3 2 0 2 4 0 0 0 3 1 1 2 2 3 0 3 3 3 0 4 0 0 4 2 3 0 1 1 4 0 4 3 0 0 2 2 0 3 0 1 2 1 1 0 4 1 0 3 4 4 2 4 2 4 0 3 0 0 4 4 0 3 2 0 2 2 0 0 2 0 3...

output:

YYNNY

result:

ok "YYNNY"

Test #80:

score: 0
Accepted
time: 13ms
memory: 9420kb

input:

1000
4 4 3 4 2 0 3 3 1 0 0 4 2 3 1 3 0 3 0 4 2 2 1 0 2 0 3 4 1 1 1 2 3 3 3 0 4 3 4 3 1 4 4 2 3 3 3 4 4 1 0 2 4 4 1 1 0 4 2 0 4 2 4 0 0 2 3 2 4 2 2 0 1 2 1 3 3 4 2 2 1 1 0 3 0 2 1 0 1 3 3 2 1 0 4 4 2 0 1 0 2 2 0 2 2 3 1 2 0 0 2 4 3 3 4 0 3 4 0 1 1 1 3 4 3 2 2 0 2 4 3 4 2 0 2 1 0 0 0 0 4 3 1 2 0 4 2 2...

output:

YNYYN

result:

ok "YNYYN"

Test #81:

score: 0
Accepted
time: 11ms
memory: 8532kb

input:

1000
4 4 4 4 4 1 4 2 3 1 3 0 1 4 2 3 2 1 3 3 3 4 4 4 1 3 3 2 3 2 0 0 0 2 3 0 1 4 0 0 3 0 4 4 0 3 4 4 1 3 3 1 1 3 4 1 2 2 4 3 1 2 3 0 4 4 0 2 1 3 0 4 0 2 4 0 3 1 1 2 1 3 3 0 2 1 3 3 4 2 3 3 1 4 1 1 3 4 4 2 2 2 2 3 3 0 0 1 2 1 0 1 0 0 2 1 3 3 2 3 4 3 0 0 4 2 4 0 1 0 3 4 2 2 1 4 3 4 1 3 2 4 2 4 4 2 2 3...

output:

YNYYN

result:

ok "YNYYN"

Test #82:

score: 0
Accepted
time: 14ms
memory: 9424kb

input:

1000
0 0 0 0 2 2 0 3 3 1 1 4 3 3 2 3 1 1 3 4 1 1 3 2 2 0 1 2 1 0 2 0 3 0 3 1 0 3 2 4 0 1 0 1 0 1 3 4 2 1 1 0 3 3 3 3 2 3 4 1 0 4 2 4 4 2 1 3 0 3 2 2 0 2 4 2 1 2 4 0 2 4 1 2 1 3 4 4 0 2 2 0 2 0 2 1 0 4 1 2 0 3 4 2 3 0 0 4 4 3 1 1 0 3 3 0 1 1 2 4 3 4 0 1 3 1 0 2 0 0 1 3 0 1 1 0 3 4 4 1 4 0 2 3 1 3 0 2...

output:

NYYNY

result:

ok "NYYNY"

Test #83:

score: 0
Accepted
time: 14ms
memory: 8524kb

input:

1000
4 4 4 3 4 4 2 4 1 3 4 2 4 4 1 1 4 1 4 4 1 0 2 4 0 1 0 3 2 2 0 4 1 3 4 4 1 0 3 0 4 0 1 0 3 2 2 2 1 4 1 2 0 3 4 4 2 1 3 2 4 3 4 1 4 1 3 4 3 1 3 2 3 4 0 2 3 3 0 4 1 1 3 2 0 1 1 0 3 2 1 0 1 2 2 4 2 4 1 2 3 3 3 2 2 3 3 0 0 4 3 1 1 2 4 2 3 4 1 4 3 0 0 3 2 2 3 0 2 1 0 4 2 2 2 0 4 0 2 4 4 3 1 2 3 3 2 2...

output:

YNNYY

result:

ok "YNNYY"

Test #84:

score: 0
Accepted
time: 16ms
memory: 8272kb

input:

1000
4 3 2 3 0 1 1 4 3 0 2 0 4 4 3 2 4 1 1 4 2 2 2 2 3 1 1 4 1 4 4 2 1 0 1 4 1 0 0 1 0 1 2 1 0 3 4 3 0 3 4 0 2 1 3 2 0 3 0 4 2 0 0 1 4 3 2 2 1 3 0 3 0 3 1 4 0 2 0 4 0 0 2 1 0 4 2 4 1 3 2 4 0 1 0 4 1 4 1 1 4 1 1 2 1 3 3 3 0 3 2 4 0 0 0 2 2 0 2 3 2 1 3 1 3 4 4 3 4 4 3 3 0 2 2 3 1 0 1 0 4 3 4 4 1 4 0 2...

output:

YYYYN

result:

ok "YYYYN"

Test #85:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

321
1 2 3 1 4 3 3 0 2 4 0 2 0 2 3 4 3 1 3 0 0 1 2 4 1 0 3 3 1 2 1 0 3 4 4 4 0 4 0 3 0 3 2 1 0 3 1 3 0 3 0 1 0 1 4 4 1 0 4 1 4 1 3 1 2 0 4 4 1 3 2 3 2 4 3 2 4 0 0 3 3 3 3 2 3 2 2 0 4 2 1 2 2 3 3 3 2 4 1 4 0 4 3 1 0 0 0 2 0 4 3 4 1 0 1 4 2 1 1 4 2 3 3 3 1 0 3 3 3 4 4 4 3 3 1 3 4 3 4 4 3 1 1 1 1 2 3 3 ...

output:

NYNYN

result:

ok "NYNYN"

Test #86:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

165
3 0 2 3 4 0 0 0 4 1 4 2 0 0 3 2 1 1 3 2 0 1 4 0 4 0 4 0 0 4 0 3 0 1 2 0 4 4 1 2 4 3 4 2 2 0 0 2 4 2 0 4 2 1 1 1 4 1 3 2 4 0 4 1 3 4 4 1 1 3 4 4 0 1 2 3 4 1 3 1 4 0 4 1 2 4 0 2 4 4 3 3 2 4 0 0 3 0 2 3 0 1 4 1 0 3 3 0 4 1 3 3 4 2 3 3 0 1 0 0 1 0 1 0 0 1 2 2 2 0 2 4 2 3 3 2 0 0 2 4 1 0 4 1 1 2 2 1 ...

output:

YYYYY

result:

ok "YYYYY"

Test #87:

score: 0
Accepted
time: 1ms
memory: 5708kb

input:

10
1 1 4 1 2 2 0 0 0 1
0 0 3 0 1 1 4 4 4 0
4 4 2 4 0 0 3 3 3 4
1 1 4 1 2 2 0 0 0 1
0 1 4 0 1 1 4 4 0 0
0 0 3 0 1 1 4 4 4 0
2 2 0 2 3 3 1 1 1 2
4 4 2 4 0 0 3 3 3 4
4 0 2 4 0 0 3 3 3 4
2 2 0 2 3 3 1 1 1 2

output:

YYYNN

result:

ok "YYYNN"

Test #88:

score: 0
Accepted
time: 6ms
memory: 8144kb

input:

662
0 0 2 2 2 4 1 0 3 0 4 1 4 0 4 4 1 3 1 4 3 0 4 4 3 3 4 4 0 4 0 0 1 4 3 0 4 3 0 3 3 1 3 3 1 3 1 4 2 0 4 4 4 1 2 3 2 2 2 1 1 1 0 3 2 4 0 2 4 1 3 2 2 4 1 3 3 4 3 2 0 1 2 3 0 0 1 0 0 3 1 0 2 0 3 1 3 4 3 2 2 2 0 2 4 2 3 0 4 0 4 0 2 3 4 0 2 4 4 3 4 1 2 3 3 1 2 3 4 2 2 2 3 1 1 3 4 3 4 2 4 1 3 2 2 1 4 4 ...

output:

NNYNN

result:

ok "NNYNN"

Test #89:

score: 0
Accepted
time: 3ms
memory: 7764kb

input:

506
3 1 2 1 0 2 3 3 0 3 4 2 1 1 4 4 0 4 3 3 4 0 2 1 1 3 0 3 2 2 0 4 4 2 1 0 3 0 4 2 3 2 2 1 1 1 3 2 2 0 2 4 3 0 4 1 1 4 3 4 1 1 3 0 0 4 0 2 3 2 2 3 3 1 1 2 1 3 0 3 0 4 0 2 4 0 1 4 1 4 3 1 4 4 3 2 3 1 3 0 4 3 4 3 1 1 0 0 4 4 3 1 2 4 2 0 1 4 0 4 1 0 2 1 2 4 1 4 0 4 2 4 3 2 4 3 4 1 4 2 3 3 4 2 4 2 1 3 ...

output:

NNYNN

result:

ok "NNYNN"

Test #90:

score: 0
Accepted
time: 6ms
memory: 6096kb

input:

647
2 2 2 1 1 2 1 2 0 3 1 4 2 0 0 3 0 2 1 3 2 1 1 2 1 1 1 1 4 3 2 0 2 2 0 3 0 1 0 0 3 1 4 0 2 1 2 0 2 2 1 4 1 3 0 0 2 2 0 3 3 1 3 0 4 0 3 1 0 1 2 3 3 1 3 1 1 2 0 4 1 2 2 2 1 2 4 4 4 2 3 1 2 3 3 2 2 4 3 1 3 0 4 1 3 3 2 0 2 3 1 0 2 0 4 1 0 3 1 2 3 2 4 4 2 3 4 2 0 2 3 1 3 0 0 3 3 1 0 1 4 1 1 0 3 4 3 4 ...

output:

YNNYN

result:

ok "YNNYN"

Test #91:

score: 0
Accepted
time: 3ms
memory: 5672kb

input:

491
2 4 1 3 0 4 3 2 3 4 1 3 3 0 0 0 2 4 1 2 2 0 1 0 0 3 0 4 4 2 0 4 4 3 3 0 4 1 3 3 4 0 2 2 1 3 1 3 4 1 3 3 3 2 0 0 0 3 3 0 0 4 2 0 3 4 2 3 1 0 4 4 3 2 3 4 4 3 3 0 3 4 4 0 2 4 3 0 0 2 4 0 4 2 3 2 1 1 1 1 0 1 1 0 0 2 1 3 0 0 2 0 4 2 4 0 3 1 1 2 3 0 2 0 1 3 4 3 0 0 4 4 2 2 3 3 2 2 2 4 2 4 4 4 0 4 1 0 ...

output:

YYNNN

result:

ok "YYNNN"

Test #92:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

335
4 0 4 2 0 1 3 2 4 1 1 3 2 4 0 1 1 3 2 0 4 1 2 2 0 2 2 4 4 4 3 2 3 0 1 3 3 2 3 2 3 1 4 0 0 0 3 0 4 0 4 0 3 4 0 1 4 3 4 4 0 3 2 2 4 3 1 2 0 0 1 1 3 4 3 3 4 0 1 4 1 0 0 2 1 1 3 3 0 1 1 3 4 0 2 3 2 4 0 2 0 2 3 4 4 3 2 0 4 3 2 1 2 1 3 4 1 0 4 2 1 4 1 0 0 0 4 3 2 1 2 0 0 1 1 2 1 4 2 0 3 0 4 2 0 4 0 3 ...

output:

YNYYY

result:

ok "YNYYY"

Test #93:

score: 0
Accepted
time: 11ms
memory: 8912kb

input:

988
4 2 1 1 3 3 4 2 0 2 0 2 1 1 4 4 3 4 4 1 1 4 3 4 4 2 1 2 0 2 2 0 0 3 4 1 1 0 1 0 1 3 1 1 4 0 2 0 0 4 0 4 0 1 2 2 2 4 3 1 4 0 0 3 2 4 1 2 3 0 3 4 0 4 3 3 2 1 3 2 4 1 1 4 4 0 4 0 0 1 0 2 4 0 0 0 3 0 2 0 3 2 1 4 3 1 1 0 1 0 4 1 4 4 0 2 4 1 1 1 0 0 3 4 3 1 3 3 2 2 2 0 3 1 4 3 1 2 4 0 1 1 2 0 0 3 1 1 ...

output:

YYNNN

result:

ok "YYNNN"

Test #94:

score: 0
Accepted
time: 15ms
memory: 8916kb

input:

1000
3 4 4 0 3 1 1 2 3 1 3 1 2 2 3 0 3 0 3 1 1 4 2 3 2 1 3 2 0 3 2 2 4 3 0 3 3 2 3 2 0 3 1 2 4 4 2 0 1 1 1 3 4 3 3 4 0 4 3 3 1 3 2 4 3 3 4 4 0 4 0 0 3 1 2 3 2 4 3 1 0 4 0 2 3 1 1 0 1 4 2 4 0 4 0 2 2 3 3 1 4 2 0 2 2 3 2 1 2 1 2 0 2 0 1 0 2 2 2 3 0 2 0 1 4 1 0 0 4 3 0 4 1 0 1 4 3 0 1 2 0 4 1 1 4 1 4 4...

output:

YYNYN

result:

ok "YYNYN"

Test #95:

score: 0
Accepted
time: 13ms
memory: 9292kb

input:

1000
4 3 1 0 0 1 0 3 1 2 4 3 0 0 1 4 4 2 0 1 2 0 4 0 2 3 0 1 0 3 3 0 2 0 4 3 1 1 2 2 1 1 1 4 4 2 2 4 1 3 0 2 1 3 1 2 0 4 2 3 3 0 2 1 2 0 4 4 3 3 2 2 1 3 0 4 1 0 1 1 2 4 1 2 3 3 3 4 3 0 4 1 4 0 1 4 3 2 1 3 0 3 2 4 1 4 2 2 3 4 1 2 4 3 4 4 3 3 3 3 3 4 2 1 3 3 2 1 3 0 3 1 3 2 0 2 1 3 2 4 4 2 3 4 2 0 3 0...

output:

NYYNY

result:

ok "NYYNY"

Test #96:

score: 0
Accepted
time: 10ms
memory: 8488kb

input:

1000
1 0 4 3 3 4 2 2 0 0 4 0 1 0 4 1 3 2 2 1 3 1 4 2 4 3 2 2 4 1 0 3 4 4 1 1 0 3 0 4 0 3 2 0 2 2 0 1 0 2 2 3 2 4 1 0 3 0 1 1 3 2 3 3 3 1 1 0 2 1 2 2 0 1 2 1 0 1 2 3 0 1 3 2 3 4 2 0 3 4 0 4 0 2 3 0 4 2 4 4 1 0 3 2 0 4 3 2 4 4 4 4 1 1 4 1 0 3 3 3 4 1 3 0 1 0 3 4 0 2 3 0 1 2 1 4 2 1 2 1 2 0 3 3 3 1 2 4...

output:

NNNNY

result:

ok "NNNNY"

Test #97:

score: 0
Accepted
time: 17ms
memory: 8096kb

input:

1000
3 3 0 3 4 4 2 4 1 0 0 4 2 1 4 1 0 1 1 4 1 2 2 3 1 4 4 0 2 3 2 2 1 0 1 0 4 4 2 4 1 0 2 2 2 2 1 2 4 4 0 2 0 2 4 2 1 1 4 0 0 3 3 3 2 4 4 4 4 2 3 0 0 4 1 2 0 0 0 0 4 4 0 3 4 0 4 0 2 3 2 3 2 3 4 1 0 1 3 2 2 0 4 0 4 3 2 2 1 4 3 3 4 4 0 0 0 1 4 1 2 3 3 4 3 2 4 4 4 0 3 1 1 0 0 2 1 0 2 2 2 0 0 2 0 1 2 0...

output:

YYYYY

result:

ok "YYYYY"

Test #98:

score: 0
Accepted
time: 12ms
memory: 7740kb

input:

1000
1 1 4 0 4 4 2 4 3 1 4 3 3 2 3 4 0 1 2 3 0 1 2 1 2 1 0 2 3 2 0 3 2 2 2 3 0 2 4 2 3 3 1 2 4 3 3 4 4 4 4 1 4 4 0 2 3 4 4 1 0 4 4 2 4 3 0 2 4 0 0 0 1 4 2 0 4 1 1 0 0 1 1 4 2 4 0 2 2 0 3 3 1 4 2 1 4 2 4 3 1 1 4 2 3 1 4 1 4 1 0 0 2 3 1 4 3 0 4 4 4 1 3 4 3 4 4 4 1 4 0 1 0 0 3 0 3 1 0 1 3 4 0 3 2 1 0 1...

output:

NYYNN

result:

ok "NYYNN"

Test #99:

score: 0
Accepted
time: 11ms
memory: 7888kb

input:

1000
2 0 4 1 0 3 1 4 3 1 1 3 1 4 4 2 1 4 4 0 2 1 4 3 2 3 0 0 4 2 4 3 1 3 2 2 1 2 4 4 3 3 0 2 3 0 3 2 2 3 1 2 0 2 1 3 0 4 1 4 1 3 2 3 2 2 3 0 0 1 0 2 4 3 2 0 3 4 4 4 4 1 3 4 2 0 1 3 4 1 3 3 1 3 2 3 0 1 1 0 0 0 0 2 1 1 4 0 3 0 2 4 0 4 4 0 3 1 2 0 1 1 1 4 4 0 3 2 0 2 1 0 1 2 1 2 4 4 3 0 4 0 2 0 3 0 2 1...

output:

NNYNN

result:

ok "NNYNN"

Test #100:

score: 0
Accepted
time: 16ms
memory: 8400kb

input:

1000
2 2 1 2 2 0 2 2 3 4 0 2 2 2 3 0 4 2 0 3 0 4 3 2 4 0 3 4 2 4 4 2 0 1 0 3 0 3 1 2 1 0 0 0 4 4 3 4 3 1 3 3 1 3 0 1 4 0 0 2 0 1 3 3 1 0 3 1 3 4 4 3 3 3 1 1 0 1 3 0 4 4 2 2 2 2 0 3 0 2 1 2 2 1 4 2 4 2 0 2 2 2 3 1 4 3 0 1 2 0 3 2 0 1 0 2 4 3 4 4 0 2 0 0 2 1 0 3 2 0 4 3 1 1 2 3 4 4 2 2 3 0 0 3 4 0 3 0...

output:

YYYYY

result:

ok "YYYYY"

Test #101:

score: 0
Accepted
time: 13ms
memory: 9168kb

input:

1000
1 0 0 4 3 2 4 3 3 0 4 1 0 4 4 2 1 0 1 3 4 0 3 3 3 2 3 1 4 0 2 3 0 0 2 2 1 2 4 4 1 4 4 4 2 1 2 2 3 0 4 4 0 4 1 1 0 2 0 3 0 1 1 1 3 0 0 4 4 4 4 0 4 0 3 0 3 3 0 4 4 1 4 1 2 1 4 0 1 2 0 1 0 4 3 2 2 3 4 3 0 1 2 2 0 2 2 0 0 4 1 1 3 2 0 3 3 0 0 3 1 2 2 0 2 1 0 2 3 2 4 1 0 0 0 0 1 1 1 0 2 4 1 4 4 2 1 1...

output:

NNYNN

result:

ok "NNYNN"

Test #102:

score: 0
Accepted
time: 15ms
memory: 8916kb

input:

1000
2 0 0 3 1 3 3 4 4 0 0 1 3 1 0 1 1 3 4 4 1 0 0 1 1 1 4 4 1 3 3 2 4 0 1 1 4 2 3 1 1 3 1 3 2 2 0 0 1 2 3 3 2 3 3 1 0 1 3 2 2 0 3 3 1 1 4 1 0 4 2 2 2 3 1 0 0 2 2 1 4 1 0 3 0 0 2 4 2 0 1 1 1 1 1 4 1 1 2 0 3 0 3 1 0 2 0 1 0 4 0 1 1 2 4 4 2 1 0 4 4 1 4 4 0 0 4 2 0 0 1 2 1 2 3 4 4 3 3 1 0 4 2 0 3 4 2 1...

output:

NNYYN

result:

ok "NNYYN"

Test #103:

score: 0
Accepted
time: 11ms
memory: 8524kb

input:

1000
0 0 3 3 2 3 3 3 1 3 4 0 1 2 1 4 2 4 4 3 3 0 1 2 0 3 3 3 1 2 1 0 0 0 4 2 4 0 0 4 1 2 4 3 0 3 0 3 1 2 1 4 2 0 4 3 3 1 1 3 2 0 0 1 3 4 0 4 0 1 1 2 2 1 3 2 0 2 4 4 1 3 2 2 2 3 1 3 0 3 2 0 4 4 1 3 0 3 3 2 2 0 4 3 2 1 4 1 4 4 1 0 1 3 2 4 0 0 1 4 0 1 0 3 3 0 4 0 3 0 1 2 0 4 0 0 1 0 1 3 4 0 3 1 2 2 0 1...

output:

YYYYN

result:

ok "YYYYN"

Test #104:

score: 0
Accepted
time: 5ms
memory: 7680kb

input:

643
3 2 3 4 0 0 4 0 3 4 0 4 2 2 3 3 1 2 2 0 4 1 3 1 1 0 0 1 4 0 2 4 1 4 0 4 2 2 3 3 0 3 2 0 2 3 2 4 3 4 4 3 4 4 1 1 2 4 0 3 1 3 2 0 4 0 0 0 3 0 0 4 3 3 0 4 2 3 3 2 0 1 0 1 1 1 3 0 3 0 4 3 1 4 2 0 1 4 0 1 4 0 3 4 3 2 4 1 0 3 2 1 1 2 0 1 1 0 2 4 3 0 1 2 1 4 1 2 0 2 0 3 1 1 3 1 4 4 4 1 3 2 1 4 4 4 4 3 ...

output:

NNYYN

result:

ok "NNYYN"

Test #105:

score: 0
Accepted
time: 3ms
memory: 7756kb

input:

487
4 0 4 4 3 3 4 1 1 0 4 4 1 4 3 0 3 3 4 4 0 1 4 1 4 0 4 3 0 3 1 2 0 1 1 3 2 3 1 2 1 3 0 1 2 0 3 4 4 0 1 2 2 0 1 2 0 0 3 4 0 3 0 3 3 3 2 3 2 0 2 0 2 4 0 0 0 0 0 0 3 3 1 2 0 4 2 1 3 1 1 0 3 3 0 1 1 1 0 2 0 3 0 4 2 4 0 1 4 0 4 1 2 1 3 3 3 0 3 4 2 3 3 2 0 0 1 1 3 3 0 2 0 1 3 0 0 2 3 1 0 0 2 4 3 2 1 3 ...

output:

NYNNN

result:

ok "NYNNN"

Test #106:

score: 0
Accepted
time: 2ms
memory: 7764kb

input:

332
1 2 3 1 2 4 4 2 3 2 4 4 1 3 1 1 2 2 2 0 2 0 4 2 0 4 0 4 0 1 1 2 2 4 4 1 1 1 4 1 0 3 2 3 2 2 2 4 0 4 2 3 1 3 3 2 3 0 0 4 4 1 2 3 4 3 1 0 3 3 0 2 1 2 4 4 2 1 2 0 2 3 3 4 3 0 1 4 4 1 2 0 3 1 3 2 2 2 3 2 1 3 3 0 0 4 4 4 4 3 0 2 4 4 3 2 2 2 2 0 1 2 1 3 4 1 4 2 2 0 4 2 2 1 0 2 4 4 1 1 3 4 0 2 3 2 0 1 ...

output:

NNNYY

result:

ok "NNNYY"

Test #107:

score: 0
Accepted
time: 2ms
memory: 7600kb

input:

472
1 2 0 2 4 1 4 1 2 2 3 2 3 1 4 4 3 2 2 3 0 0 4 3 3 3 4 1 0 2 3 3 2 3 1 4 4 1 2 2 2 4 3 3 0 3 2 4 0 2 2 2 3 0 2 2 2 0 2 4 1 2 2 3 1 3 0 2 0 2 0 1 4 1 2 0 4 1 2 3 4 4 1 1 4 3 1 0 3 4 3 2 3 0 2 3 4 1 0 1 1 4 3 4 2 3 3 4 1 0 3 2 1 0 1 4 3 1 0 1 0 2 4 4 2 1 2 1 4 0 1 0 4 3 1 1 2 3 2 0 3 4 4 4 2 1 1 4 ...

output:

YYYNY

result:

ok "YYYNY"

Test #108:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

21
1 4 1 4 3 1 4 0 3 3 1 0 4 2 2 4 3 4 0 1 0
4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3
4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3
3 1 3 1 0 3 1 2 0 0 3 2 1 4 4 1 0 1 2 3 2
4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3
0 3 0 3 2 0 3 4 2 2 0 4 3 1 1 3 2 3 4 0 4
4 2 4 2 1 4 2 3 1 1 4 3 2 0 0 2 1 2 3 4 3
2 0...

output:

NYYNN

result:

ok "NYYNN"

Test #109:

score: 0
Accepted
time: 6ms
memory: 7756kb

input:

673
0 0 3 1 1 3 0 4 0 4 0 3 0 0 3 0 1 4 3 3 0 0 0 4 0 3 0 2 3 1 1 3 1 1 4 4 0 2 1 4 0 1 2 3 4 2 1 4 1 1 2 2 4 2 1 3 1 3 2 0 3 2 0 3 2 2 1 0 0 1 3 2 0 3 2 3 0 3 1 0 1 0 3 3 4 3 3 0 2 2 4 2 2 0 1 2 3 2 4 1 0 3 1 4 1 3 2 0 0 2 4 3 4 1 2 0 1 1 3 4 2 2 3 0 3 4 4 1 1 4 4 3 4 1 4 0 0 1 2 2 2 0 4 1 2 3 0 4 ...

output:

YNYNN

result:

ok "YNYNN"

Test #110:

score: 0
Accepted
time: 7ms
memory: 7760kb

input:

813
2 0 3 0 1 1 3 3 4 3 2 0 3 1 0 3 0 2 0 2 2 0 3 3 4 4 2 2 4 1 1 2 2 2 0 0 2 1 1 4 0 0 2 1 1 2 4 0 3 2 1 0 4 1 1 0 2 2 1 2 4 2 4 0 0 3 1 4 1 3 1 0 0 0 3 2 3 2 0 0 2 1 0 2 4 2 2 0 4 4 2 3 4 2 2 1 0 2 4 0 3 4 0 1 2 0 2 4 1 1 3 1 4 1 2 0 1 4 0 2 3 3 3 3 3 3 2 4 0 3 0 4 0 0 0 1 1 0 4 2 2 4 1 2 3 4 2 0 ...

output:

NNYYN

result:

ok "NNYYN"

Test #111:

score: 0
Accepted
time: 5ms
memory: 7632kb

input:

658
3 4 0 1 2 2 4 3 3 4 0 3 1 1 0 0 3 1 0 0 3 0 2 4 0 2 0 1 4 3 4 0 3 4 4 2 4 0 1 1 0 4 3 1 4 3 2 0 3 1 3 3 2 3 0 1 3 1 3 0 2 4 2 2 3 1 1 2 1 2 3 1 2 1 0 4 4 2 4 0 4 1 1 4 2 4 4 0 4 2 3 1 3 0 0 2 0 1 0 3 3 4 1 4 3 2 1 1 4 1 1 1 0 3 1 2 3 4 2 4 1 0 3 3 0 3 0 2 4 3 2 1 2 4 2 1 4 2 0 1 4 3 4 2 2 4 2 2 ...

output:

NYNNN

result:

ok "NYNNN"

Test #112:

score: 0
Accepted
time: 11ms
memory: 8780kb

input:

798
3 4 3 3 0 1 2 3 1 1 4 3 1 1 4 2 4 1 0 3 2 3 3 4 3 2 4 4 0 0 1 2 0 1 2 0 3 3 3 1 4 4 0 3 1 0 4 0 4 0 3 1 0 4 1 2 2 2 1 2 1 4 4 2 4 0 3 4 4 2 1 2 3 2 4 1 0 3 3 0 3 4 2 1 0 4 3 1 4 2 4 2 3 3 3 2 3 1 4 0 4 4 3 3 2 0 2 3 3 4 3 1 2 0 1 0 3 0 1 4 0 4 2 3 2 4 3 3 2 3 3 2 4 3 4 0 4 2 3 0 0 2 4 2 1 3 1 1 ...

output:

YYYYY

result:

ok "YYYYY"

Test #113:

score: 0
Accepted
time: 2ms
memory: 7628kb

input:

346
3 2 0 2 2 4 3 1 0 1 2 1 4 0 4 0 2 0 1 4 2 2 3 2 2 4 3 1 2 1 2 4 3 0 3 2 1 2 0 3 4 0 1 4 3 1 3 0 1 1 4 1 2 0 1 4 2 3 3 2 2 3 0 0 0 4 0 4 0 0 1 2 4 2 3 1 1 3 4 3 2 1 0 2 0 4 0 3 3 0 4 0 2 2 4 0 2 3 0 1 0 2 3 1 3 3 3 1 2 0 2 0 3 2 2 3 3 4 0 2 2 3 3 3 4 3 2 1 0 0 4 0 2 1 0 2 2 2 0 4 1 1 0 4 3 0 4 2 ...

output:

NNNYY

result:

ok "NNNYY"

Test #114:

score: 0
Accepted
time: 14ms
memory: 8656kb

input:

1000
3 4 3 1 4 2 0 2 4 0 3 0 1 2 2 1 4 0 0 0 2 0 2 4 4 1 2 4 0 3 2 1 2 2 1 1 4 0 0 2 2 1 3 2 4 1 4 3 3 2 1 4 4 1 1 4 2 1 0 1 2 1 4 4 3 4 3 3 0 2 1 3 4 0 1 2 0 1 2 3 4 0 2 2 0 2 2 1 2 2 0 0 1 3 4 3 1 3 1 4 2 4 0 0 1 2 2 3 2 0 2 0 3 3 0 0 3 0 0 2 3 1 4 1 1 3 0 2 1 2 4 2 3 3 2 3 0 0 4 2 2 3 2 3 0 4 4 0...

output:

NYNYY

result:

ok "NYNYY"

Test #115:

score: 0
Accepted
time: 0ms
memory: 5644kb

input:

100
0 4 2 3 0 1 1 2 1 2 3 2 4 3 3 1 4 1 2 0 1 1 1 0 4 4 0 0 4 0 0 4 2 1 4 0 0 0 4 4 4 0 3 2 3 3 0 4 3 2 0 0 2 4 3 3 3 2 1 3 2 2 1 3 0 0 3 4 0 3 2 3 4 4 1 4 2 4 2 1 2 4 4 1 1 2 3 3 2 4 4 3 2 3 0 1 1 4 1 1
3 2 0 1 3 4 4 0 4 0 1 0 2 1 1 4 2 4 0 3 4 4 4 3 2 2 3 3 2 3 3 2 0 4 2 3 3 3 2 2 2 3 1 0 1 1 3 2 ...

output:

YYYNN

result:

ok "YYYNN"

Test #116:

score: 0
Accepted
time: 1ms
memory: 5716kb

input:

100
0 0 1 0 4 4 4 0 3 0 0 1 0 0 2 0 4 0 4 0 1 2 2 0 2 1 0 4 2 3 4 3 1 1 1 4 1 2 3 1 4 3 1 1 1 4 1 1 3 2 1 2 2 4 2 3 4 1 3 1 3 1 3 2 2 0 1 2 1 3 3 4 2 3 2 2 0 1 3 4 2 3 0 1 4 1 0 1 2 4 0 2 0 2 3 2 4 1 2 2
1 1 2 1 0 0 0 1 4 1 1 2 1 1 3 1 0 1 0 1 2 3 3 1 3 2 1 0 3 4 0 4 2 2 2 0 2 3 4 2 0 4 2 2 2 0 2 2 ...

output:

YNNNN

result:

ok "YNNNN"

Test #117:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

100
0 1 4 1 2 0 4 4 3 4 2 1 0 4 0 4 1 2 4 2 3 4 0 4 4 1 2 3 4 0 4 2 2 3 1 4 4 2 1 1 1 4 1 3 1 2 4 2 0 1 2 0 4 4 1 4 3 2 4 4 0 4 1 2 1 0 4 1 3 1 4 2 4 1 2 4 2 2 2 4 3 0 2 3 2 3 0 2 4 2 2 0 1 2 4 4 4 4 0 0
0 1 4 1 2 0 4 4 3 4 2 1 0 4 0 4 1 2 4 2 3 4 0 4 4 1 2 3 4 0 4 2 2 3 1 4 4 2 1 1 1 4 1 3 1 2 4 2 ...

output:

NYYYN

result:

ok "NYYYN"

Test #118:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
2 0 2 4 0 3 1 1 4 2 1 4 3 3 4 1 0 2 3 1 2 2 4 3 0 2 0 3 2 2 2 2 2 1 2 4 0 0 0 1 4 2 2 4 4 2 2 4 2 0 2 2 2 4 1 4 4 2 0 3 4 2 3 1 3 3 4 2 3 0 0 2 4 3 4 1 3 0 2 4 0 1 3 2 1 0 1 4 1 2 2 2 4 2 1 3 2 0 0 1
0 3 0 2 3 1 4 4 2 0 4 2 1 1 2 4 3 0 1 4 0 0 2 1 3 0 3 1 0 0 0 0 0 4 0 2 3 3 3 4 2 0 0 2 2 0 0 2 ...

output:

NNYNY

result:

ok "NNYNY"

Test #119:

score: 0
Accepted
time: 0ms
memory: 5632kb

input:

100
4 2 4 0 4 4 2 0 3 0 3 4 2 2 4 2 3 2 4 0 1 4 3 4 0 1 4 3 4 4 4 1 4 4 1 2 3 1 2 4 2 4 3 2 1 3 2 2 0 3 4 1 4 4 0 1 1 3 2 3 2 4 4 1 2 1 0 2 2 3 3 0 0 1 2 1 1 1 1 0 2 1 1 3 0 3 0 3 0 2 4 4 2 3 4 3 4 0 2 0
2 0 2 3 2 2 0 3 1 3 1 2 0 0 2 0 1 0 2 3 4 2 1 2 3 4 2 1 2 2 2 4 2 2 4 0 1 4 0 2 0 2 1 0 4 1 0 0 ...

output:

YNYYY

result:

ok "YNYYY"

Test #120:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
0 3 1 0 0 1 0 1 1 0 0 4 2 3 1 1 0 1 3 2 3 2 1 1 4 3 2 3 2 2 4 3 2 2 1 3 3 3 2 0 0 2 3 0 1 2 0 3 1 1 3 4 1 4 3 0 1 1 1 4 1 3 0 3 2 1 4 4 4 2 1 2 0 0 4 3 0 2 1 1 4 3 0 3 4 0 4 4 3 3 2 2 2 0 4 1 1 3 2 3
0 3 1 0 0 1 0 1 1 0 0 4 2 3 1 1 0 1 3 2 3 2 1 1 4 3 2 3 2 2 4 3 2 2 1 3 3 3 2 0 0 2 3 0 1 2 0 3 ...

output:

NNYNN

result:

ok "NNYNN"

Test #121:

score: 0
Accepted
time: 1ms
memory: 5712kb

input:

100
4 1 3 2 2 3 0 4 0 0 1 2 0 2 1 1 1 0 2 1 4 1 0 3 4 3 2 2 4 4 0 3 0 2 2 3 1 4 0 4 4 3 4 2 3 1 4 0 4 0 4 2 4 4 0 3 4 3 1 3 0 3 3 1 2 0 4 4 2 4 4 0 2 2 3 0 0 4 0 2 0 1 4 4 3 1 1 2 0 1 1 4 3 2 1 3 2 4 1 3
4 1 3 2 2 3 0 4 0 0 1 2 0 2 1 1 1 0 2 1 4 1 0 3 4 3 2 2 4 4 0 3 0 2 2 3 1 4 0 4 4 3 4 2 3 1 4 0 ...

output:

YYYYY

result:

ok "YYYYY"

Test #122:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
0 2 0 4 0 0 1 3 3 2 3 3 3 1 3 4 2 0 3 0 2 3 4 0 0 4 1 2 2 3 1 2 2 4 3 3 0 0 2 0 1 3 1 0 2 0 2 0 4 4 4 2 0 4 4 0 3 3 3 0 2 1 4 2 2 3 0 4 1 4 4 4 2 1 3 3 3 4 4 1 3 2 3 4 0 4 4 2 3 1 4 0 2 1 2 2 1 3 0 1
0 2 0 4 0 0 1 3 3 2 3 3 3 1 3 4 2 0 3 0 2 3 4 0 0 4 1 2 2 3 1 2 2 4 3 3 0 0 2 0 1 3 1 0 2 0 2 0 ...

output:

YNNNN

result:

ok "YNNNN"

Test #123:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

100
3 4 3 0 0 2 3 1 2 0 2 4 4 2 3 0 3 4 4 3 1 1 3 3 3 0 4 3 4 4 4 1 2 3 4 2 1 3 3 3 4 2 3 1 0 1 0 1 3 4 1 3 4 0 3 4 4 0 3 1 2 0 1 0 3 2 1 1 0 2 2 4 3 3 0 4 4 1 0 3 0 4 2 1 1 1 4 4 1 3 4 1 3 3 1 1 3 0 1 0
0 1 0 2 2 4 0 3 4 2 4 1 1 4 0 2 0 1 1 0 3 3 0 0 0 2 1 0 1 1 1 3 4 0 1 4 3 0 0 0 1 4 0 3 2 3 2 3 ...

output:

YYYYY

result:

ok "YYYYY"

Test #124:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

63
1 2 0 2 1 4 0 1 0 2 2 0 0 2 3 2 0 0 2 3 1 3 0 2 4 3 3 1 4 2 4 3 4 0 2 2 3 1 4 1 3 3 0 0 4 1 4 0 3 4 2 3 0 3 1 2 1 3 3 4 2 2 0
1 2 0 2 1 4 0 1 0 2 2 0 0 2 3 2 0 0 2 3 1 3 0 2 4 3 3 1 4 2 4 3 4 0 2 2 3 1 4 1 3 3 0 0 4 1 4 0 3 4 2 3 0 3 1 2 1 3 3 4 2 2 0
0 1 4 1 0 3 4 0 4 1 1 4 4 1 2 1 4 4 1 2 0 2 4...

output:

YYYNY

result:

ok "YYYNY"

Test #125:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

8
3 4 4 3 2 3 2 2
2 3 3 2 1 2 1 1
1 2 2 1 0 1 0 0
4 0 0 4 3 4 3 3
0 1 1 0 4 0 4 4
1 2 2 1 0 1 0 0
1 2 2 1 1 3 2 0
4 0 0 4 3 4 3 3

output:

YYYNN

result:

ok "YYYNN"

Test #126:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

56
2 1 1 4 0 3 3 3 0 0 2 0 4 0 4 2 0 4 2 4 0 3 3 0 0 4 2 2 0 3 2 4 0 3 0 0 4 0 2 3 3 2 0 3 1 2 4 2 3 2 4 0 2 4 3 4
3 2 2 0 1 4 4 4 1 1 3 1 0 1 0 3 1 0 3 0 1 4 4 1 1 0 3 3 1 4 3 0 1 4 1 1 0 1 3 4 4 3 1 4 2 3 0 3 4 3 0 1 3 0 4 0
0 4 4 2 3 1 1 1 3 3 0 3 2 3 2 0 3 2 0 2 3 1 1 3 3 2 0 0 3 1 0 2 3 1 3 3 2...

output:

YNYYN

result:

ok "YNYYN"

Test #127:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

100
4 3 4 2 3 2 0 4 0 2 0 2 0 1 4 3 2 4 0 1 4 3 3 1 0 4 1 2 1 2 1 4 2 4 4 3 2 0 4 2 1 4 2 0 4 4 0 4 0 0 1 2 1 0 0 1 0 0 1 1 4 2 3 1 0 3 2 0 1 1 3 0 2 0 0 3 2 2 1 2 1 2 0 0 1 0 3 0 1 4 0 4 2 4 4 0 0 0 2 4
2 1 2 0 1 0 3 2 3 0 3 0 3 4 2 1 0 2 3 4 2 1 1 4 3 2 4 0 4 0 4 2 0 2 2 1 0 3 2 0 4 2 0 3 2 2 3 2 ...

output:

NYNNN

result:

ok "NYNNN"

Test #128:

score: 0
Accepted
time: 0ms
memory: 7680kb

input:

49
0 4 3 4 0 3 1 4 4 0 0 1 3 1 3 4 1 0 1 1 1 2 4 3 3 3 0 0 1 4 1 1 1 0 3 4 1 1 2 1 4 4 4 1 3 1 0 3 3
2 1 0 1 2 0 3 1 1 2 2 3 0 3 0 1 3 2 3 3 3 4 1 0 0 0 2 2 3 1 3 3 3 2 0 1 3 3 4 3 1 1 1 3 0 3 2 0 0
3 2 1 2 3 1 4 2 2 3 3 4 1 4 1 2 4 3 4 4 4 0 2 1 1 1 3 3 4 2 4 4 4 3 1 2 4 4 0 4 2 2 2 4 1 4 3 1 1
4 3...

output:

NYNNN

result:

ok "NYNNN"

Test #129:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

89
0 1 1 1 4 0 0 0 4 4 4 4 2 1 2 2 3 0 3 3 0 1 0 2 1 1 3 4 0 1 4 3 2 1 0 0 3 3 0 3 0 0 0 1 4 0 0 0 1 4 2 2 2 3 4 2 1 0 2 2 1 2 2 2 3 0 3 4 2 0 0 2 2 2 2 1 4 0 0 0 0 3 1 2 0 2 2 2 2
3 4 4 4 2 3 3 3 2 2 2 2 0 4 0 0 1 3 1 1 3 4 3 0 4 4 1 2 3 4 2 1 0 4 3 3 1 1 3 1 3 3 3 4 2 3 3 3 4 2 0 0 0 1 2 0 4 3 0 0...

output:

NYNNY

result:

ok "NYNNY"

Test #130:

score: 0
Accepted
time: 0ms
memory: 7680kb

input:

34
0 1 4 3 1 0 4 0 0 0 0 3 0 4 2 2 0 3 3 3 1 4 0 2 1 4 4 1 3 2 2 0 3 3
0 1 4 3 1 0 4 0 0 0 0 3 0 4 2 2 0 3 3 3 1 4 0 2 1 4 4 1 3 2 2 0 3 3
2 3 1 0 3 2 1 2 2 2 2 0 2 1 4 4 2 0 0 0 3 1 2 4 3 1 1 3 0 4 4 2 0 0
4 0 3 2 0 4 3 4 4 4 4 2 4 3 1 1 4 2 2 2 0 3 4 1 0 3 3 0 2 1 1 4 2 2
2 3 1 0 3 2 1 2 2 2 2 0 2...

output:

NYNYN

result:

ok "NYNYN"

Test #131:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

78
0 0 2 4 1 1 0 1 0 3 4 3 0 3 2 4 2 4 2 2 2 0 1 4 4 4 3 0 0 0 1 4 2 3 4 0 2 4 1 0 0 3 2 2 2 4 4 3 2 2 1 2 3 1 2 1 3 4 1 3 2 2 1 1 1 3 2 3 1 3 4 4 4 4 0 0 1 1
3 3 0 2 4 4 3 4 3 1 2 1 3 1 0 2 0 2 0 0 0 3 4 2 2 2 1 3 3 3 4 2 0 1 2 3 0 2 4 3 3 1 0 0 0 2 2 1 0 0 4 0 1 4 0 4 1 2 4 1 0 0 4 4 4 1 0 1 4 1 2...

output:

YYNYY

result:

ok "YYNYY"

Test #132:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

26
3 1 1 3 1 0 3 2 0 1 0 2 3 0 3 3 1 2 4 2 3 2 2 1 3 4
0 3 4 0 3 2 0 4 2 3 2 4 0 2 0 0 3 4 1 4 0 4 4 3 0 1
4 2 2 4 2 1 4 3 1 2 1 3 4 1 4 4 2 3 0 3 4 3 3 2 4 0
1 4 4 1 4 3 1 0 3 4 3 0 1 3 1 1 4 0 2 0 1 0 0 4 1 2
1 4 4 1 4 3 1 0 3 4 3 0 1 3 1 1 4 0 2 0 1 0 0 4 1 2
4 2 2 4 2 1 4 3 1 2 1 3 4 1 4 4 2 3 0...

output:

YNNNY

result:

ok "YNNNY"

Test #133:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

75
2 2 3 1 3 0 2 1 0 1 4 1 4 4 4 3 3 0 1 4 4 2 2 2 2 2 1 2 4 1 1 4 3 2 2 3 0 1 4 1 0 0 1 2 3 3 0 4 4 4 4 3 0 1 3 4 0 0 3 3 1 0 0 3 0 1 3 0 2 3 3 4 2 2 0
1 1 2 0 2 4 1 0 4 0 3 0 3 3 3 2 2 4 0 3 3 1 1 1 1 1 0 1 3 0 0 3 2 1 1 2 4 0 3 0 4 4 0 1 2 2 4 3 3 3 3 2 4 0 2 3 4 4 2 2 0 4 4 2 4 0 2 4 1 2 2 3 1 1...

output:

NYNNY

result:

ok "NYNNY"

Test #134:

score: 0
Accepted
time: 0ms
memory: 7756kb

input:

100
3 4 2 3 1 1 2 0 3 0 3 2 1 0 4 1 4 0 0 4 4 1 3 4 3 3 4 3 3 1 2 0 0 0 3 3 0 4 1 1 3 1 0 4 3 2 1 0 1 0 0 2 4 0 2 4 4 3 1 1 3 3 3 3 2 3 4 4 3 2 2 3 4 1 2 4 4 0 2 3 0 4 4 1 3 3 0 3 1 4 3 4 4 2 2 4 0 3 3 2
4 0 3 4 2 2 3 1 4 1 4 3 2 1 0 2 0 1 1 0 0 2 4 0 4 4 0 4 4 2 3 1 1 1 4 4 1 0 2 2 4 2 1 0 4 3 2 1 ...

output:

YNNNY

result:

ok "YNNNY"

Test #135:

score: 0
Accepted
time: 2ms
memory: 7764kb

input:

100
0 0 0 4 4 4 0 0 3 3 4 0 0 1 0 1 3 2 0 0 1 2 0 3 3 4 1 4 0 0 0 0 2 2 3 2 3 1 2 3 3 1 1 2 2 1 1 1 0 3 1 4 0 4 3 3 1 4 4 3 4 1 2 4 1 2 3 1 3 0 0 4 0 4 0 0 0 0 2 0 1 2 1 2 2 3 4 4 3 4 4 0 3 0 4 4 1 4 4 4
3 3 3 2 2 2 3 3 1 1 2 3 3 4 3 4 1 0 3 3 4 0 3 1 1 2 4 2 3 3 3 3 0 0 1 0 1 4 0 1 1 4 4 0 0 4 4 4 ...

output:

YYYYY

result:

ok "YYYYY"

Test #136:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

100
4 2 3 0 2 1 1 3 1 4 2 2 0 1 4 3 4 1 2 3 3 3 4 4 4 4 4 1 2 1 1 2 1 2 2 0 2 3 0 3 1 3 1 0 0 0 4 2 2 1 3 4 0 0 1 3 4 1 2 0 2 0 1 2 2 0 4 1 1 2 2 3 0 0 0 0 4 0 2 2 4 1 4 4 2 0 4 0 0 4 3 3 3 2 2 1 3 4 1 3
2 0 1 3 0 4 4 1 4 2 0 0 3 4 2 1 2 4 0 1 1 1 2 2 2 2 2 4 0 4 4 0 4 0 0 3 0 0 3 1 4 1 4 3 3 3 2 0 ...

output:

NYYYN

result:

ok "NYYYN"

Test #137:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
3 2 3 1 4 2 2 4 4 0 3 2 0 4 2 0 3 3 2 0 1 0 1 1 0 0 1 0 4 2 1 0 3 3 3 3 0 3 4 3 3 3 1 1 4 3 2 2 4 4 1 2 1 4 3 4 3 2 4 3 0 4 4 2 1 2 2 2 4 2 2 0 3 4 4 2 2 0 0 2 3 0 3 2 4 4 0 3 1 2 0 1 0 3 2 0 0 3 4 2
4 3 4 2 0 3 3 0 0 1 4 3 1 0 3 1 4 4 3 1 2 1 2 2 1 1 2 1 0 3 2 1 4 4 4 4 1 4 0 4 4 4 2 2 0 4 3 3 ...

output:

YYYNY

result:

ok "YYYNY"

Test #138:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
1 0 1 3 3 3 4 0 3 2 2 0 1 0 2 2 1 4 3 4 4 2 1 3 1 0 0 0 3 0 4 0 0 2 4 0 0 0 2 3 3 0 3 3 1 3 3 3 1 2 3 4 0 4 3 1 4 4 0 4 3 3 2 4 1 1 3 3 3 0 3 4 2 2 1 0 3 2 1 1 1 2 2 4 0 3 1 2 0 2 0 4 2 3 3 4 3 0 0 1
2 1 2 4 4 4 0 1 4 3 3 1 2 1 3 3 2 0 4 0 0 3 2 4 2 1 1 1 4 1 0 1 1 3 0 1 1 1 3 4 4 1 4 4 2 4 4 4 ...

output:

YNNNN

result:

ok "YNNNN"

Test #139:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

100
2 3 3 4 4 0 0 1 1 3 2 0 1 3 3 3 0 0 0 4 3 1 4 0 3 3 3 0 3 2 0 3 4 0 4 2 3 1 2 0 1 3 2 0 2 0 4 3 4 1 3 3 1 0 3 1 3 3 4 1 2 1 1 1 1 1 4 3 2 0 4 4 2 4 2 0 1 3 0 3 4 0 1 3 1 0 4 3 4 3 3 1 3 4 2 2 4 0 4 1
0 1 1 2 2 3 3 4 4 1 0 3 4 1 1 1 3 3 3 2 1 4 2 3 1 1 1 3 1 0 3 1 2 3 2 0 1 4 0 3 4 1 0 3 0 3 2 1 ...

output:

YYYYY

result:

ok "YYYYY"

Test #140:

score: 0
Accepted
time: 0ms
memory: 7764kb

input:

100
2 1 2 3 0 4 3 0 2 2 2 2 0 4 1 1 4 2 4 2 0 1 0 4 2 4 1 2 3 2 3 4 4 0 2 1 1 0 2 4 0 1 1 0 0 0 4 0 1 3 4 3 1 1 4 1 3 3 3 2 2 4 3 1 3 1 1 1 2 3 3 4 3 1 3 4 3 3 1 2 1 4 1 2 3 0 2 0 2 4 3 0 3 3 3 3 3 1 0 4
2 1 2 3 0 4 3 0 2 2 2 2 0 4 1 1 4 2 4 2 0 1 0 4 2 4 1 2 3 2 3 4 4 0 2 1 1 0 2 4 0 1 1 0 0 0 4 0 ...

output:

NNNNY

result:

ok "NNNNY"

Test #141:

score: 0
Accepted
time: 2ms
memory: 5716kb

input:

100
1 4 3 2 4 4 2 2 2 0 2 3 3 1 1 4 2 3 0 4 1 2 2 4 1 4 2 4 4 1 4 2 4 0 1 4 2 3 1 1 1 1 1 1 3 2 2 4 3 4 3 0 1 4 4 1 0 1 1 1 4 1 2 0 2 1 4 4 2 4 3 1 0 4 2 4 4 2 4 1 1 2 4 4 2 0 0 4 3 2 0 0 1 2 4 4 3 0 3 1
2 0 4 3 0 0 3 3 3 1 3 4 4 2 2 0 3 4 1 0 2 3 3 0 2 0 3 0 0 2 0 3 0 1 2 0 3 4 2 2 2 2 2 2 4 3 3 0 ...

output:

YYYYY

result:

ok "YYYYY"

Test #142:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

100
3 3 0 4 4 1 1 0 3 1 1 1 4 4 2 2 0 3 2 4 0 1 1 1 2 4 0 0 1 0 4 3 3 1 4 1 1 1 2 3 4 4 3 0 2 3 0 1 0 3 4 1 4 0 3 0 1 4 0 1 4 0 3 2 2 4 3 0 2 0 3 0 1 0 1 0 0 4 3 2 0 4 0 2 0 3 4 1 2 1 2 3 3 3 1 0 1 4 1 2
1 1 3 2 2 4 4 3 1 4 4 4 2 2 0 0 3 1 0 2 3 4 4 4 0 2 3 3 4 3 2 1 1 4 2 4 4 4 0 1 2 2 1 3 0 1 3 4 ...

output:

NNYNN

result:

ok "NNYNN"

Test #143:

score: 0
Accepted
time: 0ms
memory: 7764kb

input:

28
0 2 3 1 1 0 2 3 0 0 0 3 0 2 4 1 0 2 0 3 2 0 0 4 2 4 4 2
4 1 2 0 0 4 1 2 4 4 4 2 4 1 3 0 4 1 4 2 1 4 4 3 1 3 3 1
1 3 4 2 2 1 3 4 1 1 1 4 1 3 0 2 1 3 1 4 3 1 1 0 3 0 0 3
0 2 3 1 1 0 2 3 0 0 0 3 0 2 4 1 0 2 0 3 2 0 0 4 2 4 4 2
4 1 2 0 0 4 1 2 4 4 4 2 4 1 3 0 4 1 4 2 1 4 4 3 1 3 3 1
2 4 0 3 3 2 4 0 2...

output:

NNYNY

result:

ok "NNYNY"

Test #144:

score: 0
Accepted
time: 1ms
memory: 5708kb

input:

100
3 1 3 3 4 0 4 3 0 3 4 3 2 1 0 3 4 1 1 1 4 4 2 3 4 4 4 1 0 0 2 0 3 3 3 2 0 3 4 2 3 4 2 1 1 0 0 2 1 3 1 4 2 0 0 4 1 3 2 2 0 0 2 2 0 2 2 0 4 4 3 4 0 2 0 2 4 0 2 3 2 1 3 4 2 3 0 0 3 4 2 2 4 2 2 3 4 2 2 0
0 3 0 0 1 2 1 0 2 0 1 0 4 3 2 0 1 3 3 3 1 1 4 0 1 1 1 3 2 2 4 2 0 0 0 4 2 0 1 4 0 1 4 3 3 2 2 4 ...

output:

NYNNN

result:

ok "NYNNN"

Test #145:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
2 1 1 4 0 4 2 0 3 2 0 1 1 3 4 1 0 2 1 0 1 1 2 1 0 0 3 3 4 1 0 2 2 2 2 4 3 3 4 4 1 2 0 0 0 1 2 1 3 2 1 0 3 1 3 2 2 4 3 3 4 2 3 1 3 2 2 4 3 3 2 4 3 3 2 1 0 4 4 4 1 2 3 4 2 3 3 3 2 2 4 3 1 4 2 1 1 4 3 2
0 4 4 2 3 2 0 3 1 0 3 4 4 1 2 4 3 0 3 3 4 4 0 4 3 3 1 1 2 4 3 0 0 0 0 2 1 1 2 2 4 0 3 3 3 4 0 4 ...

output:

YYNNN

result:

ok "YYNNN"

Test #146:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

100
2 4 4 3 2 4 0 1 3 2 0 0 3 0 4 0 2 3 1 0 3 4 2 1 3 4 2 0 2 2 2 4 2 2 0 3 3 2 4 2 2 0 3 4 4 2 0 0 1 2 2 1 4 3 0 0 3 0 0 2 4 0 0 0 0 2 4 1 4 3 1 4 4 2 3 0 3 1 0 0 1 0 0 3 0 3 2 1 2 3 0 2 2 3 1 1 4 0 3 4
3 0 0 4 3 0 1 2 4 3 1 1 4 1 0 1 3 4 2 1 4 0 3 2 4 0 3 1 3 3 3 0 3 3 1 4 4 3 0 3 3 1 4 0 0 3 1 1 ...

output:

NNYYN

result:

ok "NNYYN"

Test #147:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

100
1 0 0 2 4 2 4 1 0 2 0 2 3 3 1 4 2 0 4 1 4 3 3 0 3 2 4 4 3 2 2 3 1 2 1 2 1 2 2 0 3 4 1 1 3 1 4 2 3 3 1 4 4 0 2 1 0 0 0 4 0 2 4 4 3 3 2 4 4 1 0 1 3 0 2 0 3 1 2 4 0 4 1 0 2 0 0 1 4 2 1 1 0 3 4 3 4 4 4 0
3 2 2 4 1 4 1 3 2 4 2 4 0 0 3 1 4 2 1 3 1 0 0 0 0 4 1 1 0 4 4 0 3 4 3 4 3 4 4 2 0 1 3 3 0 3 1 4 ...

output:

YNYNN

result:

ok "YNYNN"

Test #148:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

100
0 2 2 4 2 1 3 0 1 0 1 1 4 4 1 0 2 1 1 0 3 0 4 3 4 4 0 4 2 1 0 3 4 3 3 4 1 4 0 3 1 3 3 4 0 1 2 3 4 4 2 0 3 2 2 1 1 3 1 0 4 0 4 3 4 4 4 1 3 3 1 0 4 1 2 3 0 2 3 2 1 3 2 2 1 4 3 3 1 1 0 2 1 4 2 2 1 3 0 0
4 1 1 3 1 0 2 4 0 4 0 0 3 3 0 4 1 0 0 4 2 4 3 2 3 3 4 3 1 0 4 2 3 2 2 3 0 3 4 2 0 2 2 3 4 0 1 2 ...

output:

YYYYY

result:

ok "YYYYY"

Test #149:

score: 0
Accepted
time: 0ms
memory: 7756kb

input:

100
1 4 0 1 0 3 3 3 2 4 4 3 4 3 0 2 0 3 4 0 1 3 2 4 2 4 4 4 2 3 2 4 3 1 3 3 0 0 2 4 4 0 4 1 1 0 4 4 2 2 4 4 4 2 0 4 4 4 0 4 3 2 0 3 4 3 4 1 2 1 2 4 1 3 3 4 2 3 1 3 0 0 0 2 4 2 2 3 0 2 3 3 0 4 3 2 3 3 4 0
0 3 4 0 4 2 2 2 1 3 3 2 3 2 4 1 4 2 3 4 0 2 1 3 1 3 3 3 1 2 1 3 2 0 2 2 4 4 1 3 3 4 3 0 0 4 3 3 ...

output:

NNYNN

result:

ok "NNYNN"

Test #150:

score: 0
Accepted
time: 4ms
memory: 7760kb

input:

507
4 2 1 0 3 3 2 4 4 3 3 3 3 2 1 3 0 1 2 2 4 2 4 0 3 1 0 4 0 1 1 4 3 2 2 4 4 0 3 3 2 1 0 1 4 1 1 3 1 1 0 2 0 3 0 2 3 2 4 0 2 0 2 0 1 1 3 0 4 4 1 0 3 4 1 0 0 0 2 2 4 2 2 4 3 3 1 4 4 0 0 0 1 1 1 2 3 4 1 3 4 4 3 2 4 1 3 2 0 4 4 2 0 3 3 4 0 0 2 2 0 2 2 0 4 4 4 2 2 1 4 3 4 3 1 4 4 0 3 1 1 4 1 4 1 4 3 1 ...

output:

YYYNY

result:

ok "YYYNY"

Test #151:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

55
2 2 2 1 4 2 1 3 3 3 1 0 3 4 4 4 1 3 3 4 2 4 4 3 2 2 2 3 2 1 3 3 2 3 1 0 2 4 3 0 3 3 4 0 3 1 3 1 0 3 0 2 0 0 3
4 4 4 3 1 4 3 0 0 0 3 2 0 1 1 1 3 0 0 1 4 1 1 0 4 4 4 0 4 3 0 0 4 0 3 2 4 1 0 2 0 0 1 2 0 3 0 3 2 0 2 4 2 2 0
4 4 4 3 1 4 3 0 0 0 3 2 0 1 1 1 3 0 0 1 4 1 1 0 4 4 4 0 4 3 0 0 4 0 3 2 4 1 0...

output:

YYYYY

result:

ok "YYYYY"

Test #152:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

195
3 4 0 4 2 0 2 2 2 3 0 4 0 0 3 2 4 4 4 2 2 4 3 0 0 1 1 1 2 4 1 0 1 0 4 3 1 2 2 4 2 3 1 1 3 3 4 4 2 1 1 1 4 0 1 1 1 1 4 0 3 4 3 0 3 3 0 4 1 2 3 1 4 0 4 1 2 1 1 4 2 3 3 2 3 0 4 2 3 4 1 2 0 3 0 3 2 4 0 1 0 0 0 4 1 1 3 2 4 0 0 3 2 4 4 0 3 0 2 1 1 3 2 0 3 4 2 1 0 1 4 1 2 4 1 4 2 3 1 3 0 0 2 4 3 0 1 1 ...

output:

YYYYY

result:

ok "YYYYY"

Test #153:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

40
2 4 2 2 2 4 1 2 1 4 3 1 0 4 4 1 4 3 4 4 1 1 2 0 0 3 0 1 0 4 0 0 1 4 0 3 2 4 4 4
2 4 2 2 2 4 1 2 1 4 3 1 0 4 4 1 4 3 4 4 1 1 2 0 0 3 0 1 0 4 0 0 1 4 0 3 2 4 4 4
1 3 1 1 1 3 0 1 0 3 2 0 4 3 3 0 3 2 3 3 0 0 1 4 4 2 4 0 4 3 4 4 0 3 4 2 1 3 3 3
4 1 4 4 4 1 3 4 3 1 0 3 2 1 1 3 1 0 1 1 3 3 4 2 2 0 2 3 2...

output:

YYYYY

result:

ok "YYYYY"

Test #154:

score: 0
Accepted
time: 5ms
memory: 7720kb

input:

692
3 2 4 4 0 1 2 2 2 1 3 1 3 3 3 2 4 3 1 0 1 1 4 4 2 2 4 1 0 2 4 0 3 1 3 3 1 0 3 3 4 4 1 1 0 4 2 3 2 1 3 4 4 1 0 1 0 1 2 4 0 4 2 3 1 4 4 2 1 0 1 2 3 3 4 0 3 3 3 0 1 2 3 4 3 1 2 2 2 1 2 0 3 3 1 2 4 2 4 4 2 0 3 1 4 0 4 0 1 4 4 2 4 2 1 4 1 0 1 2 2 3 0 0 3 1 1 1 0 2 1 3 4 1 4 4 4 0 1 4 2 4 4 1 1 4 1 1 ...

output:

YYNNY

result:

ok "YYNNY"

Test #155:

score: 0
Accepted
time: 13ms
memory: 8912kb

input:

1000
2 2 0 0 2 2 2 2 4 1 1 4 3 1 2 2 1 3 1 4 2 2 2 2 4 1 0 0 4 2 3 1 4 3 2 1 3 3 1 4 4 3 3 3 3 0 3 0 1 4 0 4 3 0 2 1 1 1 3 3 0 0 4 3 1 3 2 3 0 0 2 0 1 1 1 4 1 4 0 4 2 0 0 2 0 0 3 1 0 1 4 4 3 4 4 1 2 2 0 4 0 0 3 0 4 1 1 4 0 4 2 3 3 4 0 4 2 1 3 3 0 0 0 0 1 1 0 1 4 4 3 2 0 2 0 4 1 0 4 0 0 1 4 2 2 3 1 3...

output:

NNYNY

result:

ok "NNYNY"

Test #156:

score: 0
Accepted
time: 12ms
memory: 8388kb

input:

1000
4 2 2 2 0 3 4 2 3 1 4 0 1 3 2 4 4 1 1 2 0 1 1 4 4 1 3 0 3 1 1 1 3 2 3 0 2 0 4 0 4 1 4 2 2 0 0 2 3 3 0 4 2 1 2 4 2 0 4 4 0 4 0 0 2 0 4 1 4 1 4 0 2 2 4 0 0 2 1 1 0 2 4 0 1 3 2 2 2 1 3 2 4 1 3 0 0 3 0 2 3 4 2 0 0 3 4 1 0 3 0 0 1 1 4 3 4 1 2 1 1 4 1 4 1 2 4 3 2 0 3 4 3 3 1 1 1 2 4 4 4 4 3 1 2 1 3 3...

output:

NYNYY

result:

ok "NYNYY"

Test #157:

score: 0
Accepted
time: 11ms
memory: 7756kb

input:

1000
4 1 3 3 2 4 3 3 0 0 0 0 3 0 4 3 1 3 0 3 4 2 2 4 2 2 3 3 1 1 0 2 4 2 1 3 0 0 0 0 0 0 2 2 0 3 1 0 0 3 4 2 1 0 3 2 1 4 3 1 1 1 2 4 0 2 2 0 0 0 2 1 3 1 3 1 3 2 3 2 3 0 1 2 1 1 3 1 3 4 0 1 0 3 1 3 4 1 3 0 2 4 0 0 1 3 3 0 4 4 3 2 0 2 3 1 0 0 3 3 3 3 4 3 0 3 0 1 1 1 4 4 1 0 3 3 4 4 3 4 1 4 0 3 4 2 4 2...

output:

YYYYN

result:

ok "YYYYN"

Test #158:

score: 0
Accepted
time: 9ms
memory: 9036kb

input:

1000
4 3 4 3 0 0 4 2 0 2 0 1 0 0 1 4 4 2 4 3 2 3 1 0 3 1 1 3 4 3 1 1 1 4 0 3 4 1 0 0 3 3 3 0 2 2 1 2 0 2 4 2 4 4 2 3 1 3 3 3 0 1 3 2 0 4 1 1 4 4 0 0 3 0 3 2 0 2 2 3 1 2 4 4 2 3 1 1 2 3 3 4 1 0 4 1 1 1 2 4 2 1 2 3 1 1 3 2 0 2 3 3 1 0 3 3 2 0 3 0 3 1 3 2 0 4 2 3 0 0 0 1 4 2 0 4 4 4 2 4 0 1 3 1 4 3 0 1...

output:

NYNNN

result:

ok "NYNNN"

Test #159:

score: 0
Accepted
time: 11ms
memory: 7500kb

input:

1000
4 4 2 2 4 2 4 1 4 2 1 1 3 0 1 1 4 3 1 3 0 3 0 4 3 1 2 4 3 4 2 4 2 0 1 0 1 3 0 0 3 4 0 2 3 4 3 1 2 4 2 1 3 0 0 0 2 0 2 3 3 1 0 0 4 1 2 0 2 3 3 0 0 0 0 0 2 0 1 3 3 1 3 2 2 2 0 0 0 3 4 0 4 0 4 3 1 1 4 2 4 4 0 0 0 2 0 3 0 3 3 0 0 2 3 4 3 2 4 1 2 3 1 1 2 1 4 0 2 4 3 4 4 4 0 0 2 2 0 1 2 2 3 0 4 4 2 1...

output:

NNYNN

result:

ok "NNYNN"

Test #160:

score: 0
Accepted
time: 11ms
memory: 8148kb

input:

1000
2 0 0 3 4 0 3 4 2 0 4 2 0 0 0 4 2 3 2 0 4 1 0 3 1 4 0 0 3 3 2 1 1 3 3 4 0 1 4 1 0 2 1 1 0 0 2 2 1 2 2 2 0 2 4 2 3 2 1 3 3 3 1 2 4 0 4 2 2 4 4 4 0 1 0 3 1 2 0 1 1 1 4 2 2 0 3 2 4 0 3 0 0 4 0 1 3 0 4 3 2 0 0 0 4 0 4 0 2 2 3 4 2 1 4 2 2 1 3 0 3 2 1 0 0 0 2 2 3 2 3 2 3 4 0 2 2 3 0 4 3 0 2 4 3 2 1 4...

output:

YNNNN

result:

ok "YNNNN"

Test #161:

score: 0
Accepted
time: 12ms
memory: 9296kb

input:

1000
2 3 2 4 2 1 4 4 2 2 3 4 1 1 4 4 2 3 2 4 3 0 4 3 2 2 4 0 3 4 4 1 2 1 4 4 3 4 4 2 3 2 1 4 1 4 1 2 1 0 3 1 2 1 3 1 3 0 4 2 1 1 0 3 4 1 3 1 0 2 4 4 1 3 1 3 1 3 0 3 1 1 0 3 0 3 2 1 3 4 1 3 2 1 2 4 0 4 2 0 1 0 4 2 4 0 4 2 0 0 3 1 2 4 3 0 3 3 1 3 2 3 1 0 0 2 0 0 3 2 1 4 4 2 1 1 1 2 1 2 0 1 1 3 3 1 2 3...

output:

NNNYY

result:

ok "NNNYY"

Test #162:

score: 0
Accepted
time: 16ms
memory: 9044kb

input:

1000
4 3 3 1 2 1 4 4 0 1 4 3 0 4 1 2 4 1 0 0 4 1 1 0 2 0 3 4 4 1 0 4 3 3 3 4 3 0 0 3 4 0 1 3 1 2 2 4 4 3 3 1 0 1 0 3 1 4 3 1 4 3 0 4 3 3 3 1 2 2 1 1 2 2 2 0 3 2 4 0 3 1 1 2 3 2 4 2 3 3 3 3 2 1 3 3 1 3 0 3 3 0 1 0 0 2 3 0 1 1 4 3 2 1 3 3 4 2 3 4 1 1 0 1 1 1 0 0 3 1 4 1 0 0 4 1 0 2 4 2 4 2 4 1 1 0 2 3...

output:

YYYYY

result:

ok "YYYYY"

Test #163:

score: 0
Accepted
time: 3ms
memory: 7760kb

input:

389
2 2 0 3 3 1 0 1 3 4 2 3 0 4 4 3 2 3 2 1 1 1 4 3 0 4 2 4 2 2 4 0 1 3 2 2 2 2 1 3 4 2 1 4 2 4 3 4 2 3 2 1 1 3 2 2 4 3 2 0 4 2 2 1 0 3 4 2 1 4 3 0 0 2 0 1 4 2 4 1 4 3 2 0 0 4 2 0 1 1 2 2 1 3 1 0 4 3 2 0 3 0 2 3 4 1 3 4 1 0 3 0 4 0 4 1 4 4 2 3 3 0 4 2 0 1 1 3 3 1 3 1 1 4 0 1 4 3 1 1 4 4 1 4 4 0 2 3 ...

output:

YYYYY

result:

ok "YYYYY"

Test #164:

score: 0
Accepted
time: 1ms
memory: 5716kb

input:

233
2 2 1 2 0 4 2 4 2 4 0 0 2 2 1 2 1 0 4 1 0 1 3 4 1 0 3 0 4 2 0 4 4 2 2 4 3 0 2 4 2 1 4 4 4 2 1 0 4 4 1 2 3 1 4 4 1 2 2 0 0 3 3 4 3 1 0 3 2 3 2 3 2 0 1 4 3 1 4 2 0 3 4 2 1 4 4 3 3 3 1 2 3 4 2 3 1 3 3 0 1 3 0 0 0 1 1 3 1 0 3 3 3 0 2 3 1 4 2 0 4 1 4 4 1 3 4 0 2 4 2 4 2 0 4 2 1 2 0 2 4 3 2 0 1 2 2 4 ...

output:

YYYYY

result:

ok "YYYYY"

Test #165:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

181
0 2 3 3 2 1 4 4 4 4 4 4 0 1 4 3 3 0 2 4 3 1 3 4 3 3 4 4 4 4 3 1 2 2 0 1 0 2 0 2 4 0 1 1 3 3 1 4 0 2 4 2 4 3 3 4 1 0 2 0 3 3 4 0 0 4 4 3 4 2 3 4 1 0 1 1 3 2 0 2 2 2 0 0 4 0 2 0 2 1 0 1 2 1 4 4 0 1 0 2 0 3 2 4 3 0 0 2 0 1 2 3 4 3 3 0 4 3 4 4 0 4 2 1 1 3 2 4 1 0 3 1 4 4 1 1 4 2 4 0 1 0 2 2 0 0 4 2 ...

output:

YYYYY

result:

ok "YYYYY"

Test #166:

score: 0
Accepted
time: 0ms
memory: 5716kb

input:

26
1 0 4 0 0 1 1 2 4 3 3 2 4 4 1 4 0 3 2 2 3 3 3 0 3 2
2 1 0 1 1 2 2 3 0 4 4 3 0 0 2 0 1 4 3 3 4 4 4 1 4 3
1 0 4 0 0 1 1 2 4 3 3 2 4 4 1 4 0 3 2 2 3 3 3 0 3 2
2 1 0 1 1 2 2 3 0 4 4 3 0 0 2 0 1 4 3 3 4 4 4 1 4 3
3 2 1 2 2 3 3 4 1 0 0 4 1 1 3 1 2 0 4 4 0 0 0 2 0 4
4 3 2 3 3 4 4 0 2 1 1 0 2 2 4 2 3 1 0...

output:

NYNYN

result:

ok "NYNYN"

Test #167:

score: 0
Accepted
time: 9ms
memory: 7760kb

input:

870
1 4 1 2 2 3 0 2 4 4 2 0 2 3 3 1 2 4 4 2 3 3 4 1 0 3 4 0 1 2 1 1 1 4 1 0 0 1 0 3 2 0 0 0 1 0 4 3 4 4 3 2 0 0 3 0 2 2 2 1 4 0 3 3 2 0 0 1 0 0 1 4 4 2 3 0 0 3 2 3 4 2 2 3 2 1 3 0 1 0 1 4 0 3 0 3 0 4 4 4 1 0 3 2 1 4 2 4 0 4 1 2 1 1 0 4 3 3 4 1 1 1 1 1 2 2 2 2 1 0 3 1 3 4 4 0 1 4 2 2 3 0 3 4 1 3 4 1 ...

output:

NYNYN

result:

ok "NYNYN"

Test #168:

score: 0
Accepted
time: 6ms
memory: 7760kb

input:

714
1 3 0 4 0 4 3 2 1 2 0 0 2 3 3 1 3 3 0 1 2 1 4 2 3 3 4 3 1 0 0 4 3 4 4 0 0 4 3 0 0 4 3 1 2 2 4 4 0 3 0 4 4 1 4 0 1 1 1 2 4 1 4 0 3 3 3 2 0 0 3 1 4 2 1 2 3 0 4 3 3 2 3 4 0 3 4 4 2 0 2 3 1 1 2 0 2 4 4 3 2 0 4 3 1 4 3 2 2 2 3 2 3 1 3 4 2 4 3 0 0 4 4 1 1 4 3 3 1 1 4 4 1 3 3 3 1 1 1 2 1 4 0 3 1 2 0 0 ...

output:

NNNNY

result:

ok "NNNNY"

Test #169:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

93
4 2 2 2 4 1 3 1 2 3 2 2 2 0 3 4 3 3 0 2 0 3 1 1 1 2 3 2 1 0 4 0 2 3 2 2 1 2 1 4 0 2 3 3 0 4 0 0 4 3 2 4 3 1 4 3 1 1 2 4 1 2 3 4 0 3 3 0 1 4 2 4 3 0 1 3 4 1 2 0 3 3 4 2 0 1 2 1 4 2 0 3 1
3 1 1 1 3 0 2 0 1 2 1 1 1 4 2 3 2 2 4 1 4 2 0 0 0 1 2 1 0 4 3 4 1 2 1 1 0 1 0 3 4 1 2 2 4 3 4 4 3 2 1 3 2 0 3 2...

output:

YYYYY

result:

ok "YYYYY"

Test #170:

score: 0
Accepted
time: 0ms
memory: 5676kb

input:

167
2 0 1 4 3 0 1 1 2 0 3 0 3 1 3 0 0 2 1 2 4 3 4 1 3 0 4 3 4 3 1 0 3 2 4 2 2 2 4 1 0 2 4 3 4 3 1 0 2 1 3 3 4 0 0 1 3 1 2 3 4 0 1 2 3 4 2 3 2 4 4 1 0 0 4 1 1 4 0 3 4 2 3 1 0 2 0 2 2 2 3 1 1 4 2 2 3 4 2 2 4 2 2 2 3 1 0 2 4 1 4 2 4 3 2 0 1 1 4 1 0 1 3 4 4 4 0 3 2 3 3 2 2 4 0 2 4 2 1 3 3 1 2 1 2 1 3 0 ...

output:

NYNNN

result:

ok "NYNNN"

Test #171:

score: 0
Accepted
time: 0ms
memory: 5708kb

input:

308
1 0 2 3 2 4 4 3 0 4 4 2 0 3 4 4 0 3 2 0 3 0 2 4 3 2 1 4 0 3 2 4 4 1 4 4 0 2 4 2 1 4 4 1 0 3 4 0 1 1 4 4 0 0 3 0 2 1 4 0 4 1 3 3 2 3 0 2 3 1 3 4 1 3 1 3 1 4 4 1 0 4 2 0 0 2 0 0 3 4 2 2 3 4 2 0 1 1 3 1 2 4 0 4 3 4 0 0 1 0 1 0 3 3 4 1 1 3 1 4 0 3 4 2 4 0 1 1 3 0 3 3 2 3 0 1 0 3 3 1 3 4 4 2 0 2 0 1 ...

output:

YYYYY

result:

ok "YYYYY"

Test #172:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

152
3 4 3 3 2 4 2 2 0 3 1 0 4 3 2 3 0 2 0 1 3 2 2 4 4 4 3 0 0 3 4 1 4 0 0 4 3 0 0 4 2 4 0 3 1 3 1 3 0 3 4 4 0 3 1 4 4 2 0 4 3 2 1 3 1 1 2 3 2 1 3 4 3 3 3 4 0 3 4 4 4 4 1 1 0 3 4 4 1 2 4 2 1 0 0 0 0 1 3 3 1 1 0 4 0 0 4 2 3 1 2 3 0 4 0 1 1 3 0 4 1 4 4 1 2 4 0 3 4 0 0 2 3 1 0 2 2 4 4 3 3 3 1 0 3 4 4 3 ...

output:

YYYNY

result:

ok "YYYNY"

Test #173:

score: 0
Accepted
time: 13ms
memory: 9036kb

input:

996
0 3 1 0 0 3 3 2 3 1 1 4 3 2 4 0 2 2 3 1 1 3 3 4 1 4 2 4 4 3 0 0 3 2 3 2 1 1 0 3 3 3 2 4 0 0 2 2 0 2 2 1 0 1 3 0 1 4 1 4 4 0 2 3 0 0 0 0 0 2 0 1 1 4 2 2 3 0 0 3 3 0 2 3 3 1 4 2 2 1 1 1 1 0 3 4 4 0 1 1 2 2 2 3 3 3 3 4 2 3 0 3 1 1 4 1 4 3 4 0 2 3 2 2 0 4 0 3 3 1 0 1 2 2 0 4 3 2 1 3 0 2 0 1 4 0 4 1 ...

output:

NNNNY

result:

ok "NNNNY"

Test #174:

score: 0
Accepted
time: 8ms
memory: 8012kb

input:

841
0 2 3 2 1 2 4 2 3 2 0 2 3 0 3 2 0 2 4 3 2 0 1 4 2 1 1 3 3 1 3 1 4 4 0 4 3 3 2 1 4 2 4 4 3 0 1 3 1 0 0 4 1 1 3 4 0 0 3 4 2 2 4 4 0 4 2 3 3 0 2 1 0 0 3 1 3 0 1 2 0 0 0 3 1 4 1 3 1 0 1 4 4 2 0 1 2 0 3 2 2 2 4 2 0 2 0 0 0 0 1 2 3 1 2 4 1 3 2 4 4 2 0 3 3 4 3 2 0 0 4 4 4 0 2 2 1 3 4 1 2 0 3 4 3 4 4 3 ...

output:

NNNNY

result:

ok "NNNNY"

Test #175:

score: 0
Accepted
time: 4ms
memory: 7764kb

input:

470
0 3 3 0 1 2 4 3 4 0 3 3 4 3 4 3 0 1 0 1 1 0 2 2 1 0 1 4 4 4 4 4 3 4 1 0 0 1 4 1 1 1 0 1 4 4 1 0 4 0 4 4 1 2 2 3 4 2 2 3 0 2 3 3 3 0 2 2 3 4 1 3 0 1 2 1 3 0 4 3 3 4 2 3 0 3 0 3 4 1 4 4 2 1 3 0 4 1 3 1 4 1 2 4 3 0 0 0 3 4 4 0 2 1 1 4 0 1 2 0 4 1 1 0 3 0 4 2 1 1 3 2 3 1 2 2 0 4 0 0 4 3 4 4 3 3 2 1 ...

output:

YYNYY

result:

ok "YYNYY"

Test #176:

score: 0
Accepted
time: 2ms
memory: 5712kb

input:

314
0 2 1 2 3 0 4 2 4 4 1 2 3 1 2 2 0 0 4 4 2 4 2 3 1 2 4 1 4 1 1 0 1 4 2 2 3 1 1 4 0 0 2 1 3 0 4 4 4 3 0 1 0 1 0 4 0 1 4 2 2 1 1 4 1 4 1 3 0 3 2 4 3 3 1 3 3 1 1 2 3 0 2 3 2 0 3 0 3 0 4 2 1 4 1 1 4 2 0 4 4 1 2 3 2 0 4 1 1 1 4 4 3 3 1 2 2 1 2 3 2 0 4 4 1 4 3 1 2 2 1 0 0 2 4 3 3 0 2 4 1 1 2 1 4 3 2 4 ...

output:

YNYYY

result:

ok "YNYYY"

Test #177:

score: 0
Accepted
time: 3ms
memory: 7632kb

input:

455
3 3 3 3 4 0 0 2 0 2 1 1 1 2 1 3 2 1 3 2 2 3 4 0 3 2 3 1 3 4 0 2 3 2 0 1 1 1 3 2 3 2 3 1 2 0 0 1 0 2 0 4 2 4 0 0 0 2 3 4 1 2 3 4 2 2 4 2 4 3 4 3 1 4 1 0 2 2 3 1 2 0 4 2 1 2 3 1 4 0 1 1 2 2 3 3 4 2 2 0 4 2 4 4 3 0 2 4 1 4 0 3 0 1 3 0 0 0 0 2 1 4 2 4 0 0 3 1 3 0 1 0 0 3 2 2 3 2 0 3 4 3 2 1 4 2 2 2 ...

output:

NYNYY

result:

ok "NYNYY"

Test #178:

score: 0
Accepted
time: 0ms
memory: 7760kb

input:

299
2 2 2 1 2 4 1 3 3 4 3 2 2 1 0 4 1 1 3 4 4 3 0 1 0 0 3 4 0 1 1 3 0 2 3 0 2 4 4 2 2 2 3 3 2 2 0 2 1 4 2 1 2 1 0 1 4 4 3 2 0 1 2 4 0 0 2 3 3 3 1 4 1 0 0 4 3 4 4 4 4 1 0 3 4 0 3 2 4 0 2 4 2 3 2 4 4 2 1 4 1 2 1 4 2 2 3 3 1 1 1 3 4 4 2 3 3 3 1 3 0 3 0 1 4 4 0 1 1 0 0 0 1 2 1 1 3 4 4 4 2 2 0 1 0 1 3 0 ...

output:

YYYYY

result:

ok "YYYYY"

Test #179:

score: 0
Accepted
time: 15ms
memory: 7756kb

input:

655
4 3 0 4 0 4 3 4 0 2 2 1 0 1 4 0 3 1 2 2 0 2 0 3 2 0 4 3 3 4 0 0 4 0 0 3 1 0 1 3 3 2 0 4 4 0 1 3 2 3 4 1 4 3 1 2 1 3 3 4 4 0 3 1 1 0 1 2 1 1 4 1 3 2 3 0 0 0 1 0 3 3 4 2 1 4 2 1 0 4 4 2 4 1 1 4 0 2 4 1 2 0 4 4 1 2 3 0 1 4 1 4 2 2 2 2 1 4 0 2 4 3 3 3 2 0 1 2 0 2 3 4 1 4 4 3 2 0 1 4 3 1 1 4 0 0 4 4 ...

output:

YYYYY

result:

ok "YYYYY"

Test #180:

score: 0
Accepted
time: 6ms
memory: 7760kb

input:

624
2 3 0 0 1 0 1 3 4 3 1 4 2 0 4 3 1 0 4 3 1 0 3 4 2 4 4 1 4 0 3 1 2 3 3 1 2 4 3 0 4 2 3 0 4 4 0 1 2 4 3 0 0 3 4 2 3 0 3 3 1 4 4 2 3 0 4 4 3 2 2 3 1 2 1 1 4 0 1 4 3 3 2 2 3 2 1 3 3 3 0 1 4 0 4 4 0 1 1 1 0 2 0 1 3 2 1 2 1 3 2 1 0 1 3 1 1 2 3 2 1 4 2 4 0 2 2 0 0 0 0 0 0 2 0 2 4 3 4 2 3 1 4 3 4 0 0 2 ...

output:

YYYNN

result:

ok "YYYNN"

Test #181:

score: 0
Accepted
time: 3ms
memory: 7756kb

input:

468
2 4 2 1 3 4 2 3 3 4 0 3 3 0 1 3 3 4 2 3 0 3 1 0 2 2 4 2 4 3 0 2 3 3 0 2 4 3 1 3 0 4 1 1 3 0 0 1 3 2 4 0 1 4 3 2 4 3 1 3 3 1 3 1 0 4 0 0 1 2 3 4 4 2 0 4 3 1 2 1 1 2 3 4 1 4 3 3 3 2 0 4 3 2 3 0 3 2 3 3 0 4 1 0 1 3 0 0 0 0 2 2 1 2 0 3 2 1 1 1 4 3 3 0 3 1 1 4 1 4 3 3 2 1 2 0 3 4 2 1 0 4 3 0 0 3 3 0 ...

output:

YNYYY

result:

ok "YNYYY"

Test #182:

score: 0
Accepted
time: 1ms
memory: 7756kb

input:

312
1 0 0 0 1 0 0 2 1 4 3 1 4 3 4 3 4 2 2 2 1 2 2 1 0 0 3 2 2 4 3 4 4 3 0 4 2 3 2 2 2 3 3 3 1 0 3 4 1 0 3 3 0 4 3 2 3 4 3 3 1 3 0 1 4 2 2 2 0 0 4 4 2 3 3 3 0 1 1 1 3 2 4 4 3 1 3 4 4 1 1 2 2 4 4 3 2 0 0 4 0 4 2 3 4 2 0 3 3 1 2 2 2 0 4 1 0 2 4 0 3 1 0 1 1 1 1 1 0 0 3 4 3 1 3 1 2 4 4 4 1 1 0 3 4 2 3 3 ...

output:

NYNYN

result:

ok "NYNYN"

Test #183:

score: 0
Accepted
time: 14ms
memory: 7504kb

input:

965
1 1 1 1 2 2 1 2 1 0 2 0 1 2 2 4 1 1 1 4 1 0 2 3 2 4 0 4 1 0 1 3 2 3 2 1 2 0 2 3 3 1 4 4 0 2 4 0 1 4 4 4 2 2 4 3 4 1 3 4 3 0 2 2 2 3 0 2 4 4 0 4 0 4 0 0 0 1 3 3 4 2 4 4 1 2 3 4 4 1 1 4 2 4 2 3 1 4 1 2 4 4 4 2 3 0 3 4 1 3 3 1 4 2 2 4 0 2 2 4 1 4 3 1 2 1 3 4 3 0 0 2 2 1 4 4 0 0 0 4 1 3 0 3 3 0 3 1 ...

output:

YNYNY

result:

ok "YNYNY"

Test #184:

score: 0
Accepted
time: 0ms
memory: 5616kb

input:

105
4 3 0 4 1 3 1 2 3 2 2 0 1 4 1 3 3 1 0 2 1 0 4 1 3 3 4 2 1 1 2 0 4 0 4 1 1 1 0 0 4 2 2 0 1 3 3 0 4 3 1 2 1 2 4 4 4 4 2 0 3 2 4 2 2 3 2 1 2 0 1 1 4 4 0 3 3 3 1 2 2 4 1 3 2 2 2 2 4 1 1 1 2 2 1 1 2 4 0 1 3 4 0 2 3
3 2 4 3 0 2 0 1 2 1 1 4 0 3 0 2 2 0 4 1 0 4 3 0 2 2 3 1 0 0 1 4 3 4 3 0 0 0 4 4 3 1 1 ...

output:

NNNYY

result:

ok "NNNYY"

Test #185:

score: 0
Accepted
time: 1ms
memory: 5716kb

input:

10
1 2 3 2 0 2 0 3 1 1
0 1 2 1 4 2 1 4 2 2
4 4 4 0 2 1 0 2 4 4
1 2 3 3 2 3 0 2 1 0
3 0 4 2 1 0 0 4 1 1
4 2 4 0 1 3 2 4 1 1
1 2 1 2 1 3 0 2 2 4
2 0 1 0 3 4 1 2 3 3
0 4 4 1 2 3 0 3 0 3
0 1 1 3 3 3 1 0 4 3

output:

YYYYY

result:

ok "YYYYY"

Test #186:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
4 1 0 4 2 3 3 3 4 1
0 3 0 4 3 4 1 1 1 1
0 3 3 1 4 3 1 0 0 0
0 1 4 2 1 1 4 0 2 1
1 0 3 1 0 2 0 3 3 4
4 0 2 0 1 4 2 0 0 2
0 3 0 3 3 2 4 1 1 1
2 0 3 1 3 2 3 0 4 4
2 0 1 2 4 1 2 2 2 2
3 2 4 2 1 0 3 4 3 2

output:

YYYYY

result:

ok "YYYYY"

Test #187:

score: 0
Accepted
time: 1ms
memory: 5708kb

input:

10
4 1 2 1 0 0 0 3 1 2
4 3 2 2 0 1 4 4 0 3
2 0 1 3 1 4 3 3 1 2
1 4 1 3 4 3 4 2 2 2
1 0 2 0 4 2 4 1 1 3
0 0 2 1 4 1 3 0 4 0
3 3 0 1 4 3 3 2 4 0
3 3 2 1 3 2 4 0 2 0
3 1 0 2 3 0 2 1 0 0
0 4 0 1 1 3 1 0 4 0

output:

YYYYY

result:

ok "YYYYY"

Test #188:

score: 0
Accepted
time: 0ms
memory: 5544kb

input:

10
2 0 0 3 3 4 4 1 3 0
1 4 1 3 2 4 3 1 1 2
4 0 0 0 4 4 0 3 1 0
3 0 3 1 0 3 4 3 4 3
1 0 2 1 4 3 4 4 4 2
1 0 1 4 3 2 4 2 1 1
1 2 3 1 4 2 2 1 0 0
0 3 3 1 3 2 1 2 3 0
0 2 3 0 1 0 0 0 4 3
2 3 0 1 0 4 2 4 1 1

output:

YYYYY

result:

ok "YYYYY"

Test #189:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
1 3 3 2 0 0 1 2 1 0
0 3 3 0 4 2 1 4 1 3
2 4 3 3 1 2 0 0 2 1
4 4 1 0 3 3 4 0 4 1
4 0 0 0 3 0 4 1 1 1
0 4 1 4 2 4 4 2 0 0
4 1 1 4 2 4 0 0 4 2
1 2 4 3 2 4 3 0 2 2
1 3 2 1 2 2 1 0 1 1
0 4 0 4 1 2 2 1 0 4

output:

YYYYY

result:

ok "YYYYY"

Test #190:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
2 3 1 1 4 2 4 2 2 1
4 3 1 1 0 1 1 2 4 1
3 3 0 0 2 3 3 1 1 3
0 1 3 2 2 1 0 2 4 2
3 1 4 4 0 1 3 4 4 1
2 3 0 1 1 1 0 2 4 1
2 1 3 0 3 4 4 2 3 2
3 2 1 3 3 4 1 0 0 2
3 2 1 1 2 1 3 0 0 4
2 0 2 3 4 1 4 3 1 4

output:

YYYYY

result:

ok "YYYYY"

Test #191:

score: 0
Accepted
time: 0ms
memory: 5712kb

input:

10
0 1 3 3 2 3 0 1 0 1
2 3 3 3 4 4 4 4 4 4
0 1 3 2 1 4 0 3 2 0
4 3 0 3 2 1 0 0 0 4
2 0 4 4 4 3 4 3 3 1
3 2 0 3 1 2 1 0 2 3
1 1 0 0 4 3 3 1 1 1
4 2 4 3 3 1 3 3 1 2
0 3 0 4 3 4 4 0 0 1
4 2 2 2 2 2 1 1 1 2

output:

YYYYY

result:

ok "YYYYY"

Test #192:

score: 0
Accepted
time: 14ms
memory: 7504kb

input:

1000
4 0 3 4 3 0 4 3 1 3 1 4 0 0 0 2 1 0 3 3 3 4 4 4 3 2 3 2 4 1 3 0 1 0 0 3 0 2 4 2 4 2 2 1 4 0 1 0 3 4 2 1 1 1 1 4 4 4 3 4 3 0 2 2 1 2 0 0 0 0 0 1 1 1 4 2 2 1 3 4 3 2 4 2 1 2 4 4 3 0 0 3 4 4 3 1 2 0 1 4 0 3 4 4 4 0 4 3 2 4 3 0 0 3 3 0 0 4 4 2 2 1 3 1 1 1 4 0 4 0 3 1 1 3 2 0 3 0 1 2 2 2 4 1 1 4 3 2...

output:

YYYYY

result:

ok "YYYYY"

Test #193:

score: 0
Accepted
time: 15ms
memory: 8272kb

input:

1000
3 3 1 2 2 3 1 4 3 1 0 4 3 4 2 2 0 3 2 2 0 2 2 0 4 3 3 4 4 2 2 4 3 4 4 4 2 2 4 0 0 0 1 0 2 2 1 1 1 3 3 0 0 2 1 2 0 4 0 2 1 4 0 2 3 2 4 4 1 4 1 1 3 0 0 4 0 3 4 3 0 3 3 2 2 2 4 1 1 4 2 2 4 1 1 2 0 4 2 3 4 4 2 3 0 4 2 2 4 2 3 2 0 2 3 0 2 4 2 0 2 0 3 2 4 2 3 2 2 4 4 2 0 4 2 4 3 4 0 3 1 4 1 4 1 3 2 0...

output:

YYYYY

result:

ok "YYYYY"

Test #194:

score: 0
Accepted
time: 12ms
memory: 8400kb

input:

1000
3 2 3 2 0 3 4 4 1 4 2 2 1 3 4 2 3 0 1 0 3 4 1 2 2 4 0 2 4 3 1 0 1 3 3 2 2 0 4 1 4 1 0 1 1 3 0 0 4 1 2 0 4 3 2 2 2 4 4 2 4 4 3 1 3 3 3 1 4 1 4 4 4 3 4 0 2 3 3 3 0 3 2 1 2 3 2 0 0 2 4 4 1 1 2 0 1 1 1 0 3 0 2 2 0 1 0 4 0 2 0 4 3 3 4 1 4 3 2 1 1 2 1 2 3 0 1 1 4 1 0 4 3 0 3 4 0 0 0 3 4 2 2 4 0 1 2 0...

output:

YYYYY

result:

ok "YYYYY"

Test #195:

score: 0
Accepted
time: 15ms
memory: 8016kb

input:

1000
1 2 1 3 1 0 2 0 3 3 2 2 3 0 0 4 2 3 2 0 3 4 0 4 1 1 1 2 0 1 2 2 3 4 2 3 2 2 1 2 3 1 0 0 4 0 0 3 1 0 3 3 4 3 1 4 3 1 3 0 3 4 1 2 3 2 1 0 3 1 0 3 2 3 4 0 0 1 1 4 3 2 1 1 2 0 4 4 4 0 0 0 1 0 0 4 3 4 4 4 3 0 4 4 2 0 4 3 0 0 0 3 2 2 0 1 2 2 3 2 2 1 1 4 0 2 2 2 2 3 2 4 1 3 0 4 2 3 4 3 0 3 0 4 0 4 3 0...

output:

YYYYY

result:

ok "YYYYY"

Test #196:

score: 0
Accepted
time: 12ms
memory: 7492kb

input:

1000
1 0 0 2 1 2 0 2 0 2 4 1 1 1 0 4 1 0 1 3 0 3 1 0 2 2 2 4 1 3 0 2 0 1 1 4 2 4 1 4 2 2 3 4 2 1 0 2 4 4 0 4 2 4 2 0 4 1 4 2 1 3 3 2 1 4 0 4 2 0 1 4 4 2 4 1 2 3 2 0 1 3 0 1 2 4 4 4 0 3 2 1 1 4 4 0 4 1 3 2 2 1 1 3 2 1 3 0 2 1 0 2 1 3 0 1 0 3 2 2 4 2 0 4 4 3 1 1 4 2 4 2 0 4 1 0 3 3 3 0 4 0 3 2 2 3 4 2...

output:

YYYYY

result:

ok "YYYYY"

Test #197:

score: 0
Accepted
time: 13ms
memory: 8784kb

input:

1000
0 1 2 4 3 0 2 3 2 2 4 2 4 3 2 0 1 3 0 2 3 2 4 1 3 3 0 1 1 4 0 3 2 4 2 3 3 3 1 2 3 1 3 0 2 1 4 0 3 0 4 3 3 1 0 1 0 3 4 4 3 3 3 3 2 4 4 0 1 2 3 4 1 3 4 2 4 4 4 0 1 0 3 0 4 0 2 3 3 4 1 0 2 4 0 3 2 0 4 3 2 2 3 2 4 4 0 0 3 2 0 4 0 2 3 3 4 2 3 0 4 0 0 1 4 1 4 4 2 1 0 3 4 0 2 2 0 4 2 2 3 0 3 1 3 0 3 3...

output:

YYYYY

result:

ok "YYYYY"

Test #198:

score: 0
Accepted
time: 16ms
memory: 8144kb

input:

1000
4 4 4 2 0 2 1 3 0 1 3 2 2 4 4 0 4 0 0 0 0 1 3 3 1 2 1 3 2 3 4 4 4 0 0 3 3 0 2 2 0 1 2 3 1 3 3 1 4 4 0 2 3 2 0 3 0 4 3 4 3 2 2 1 2 3 3 4 4 1 3 4 1 0 0 0 0 2 1 2 2 0 3 0 1 3 3 3 2 2 2 2 2 1 2 4 2 2 3 2 1 3 4 4 1 1 3 1 4 3 0 1 0 1 3 3 3 2 1 1 2 3 0 2 0 2 0 0 1 0 1 0 3 0 4 2 2 2 1 2 2 2 1 1 3 4 4 3...

output:

YYYYY

result:

ok "YYYYY"

Test #199:

score: 0
Accepted
time: 14ms
memory: 9040kb

input:

1000
4 4 1 2 4 4 4 2 2 1 0 2 3 1 1 1 3 2 3 0 3 0 1 4 0 3 2 2 2 4 0 3 0 4 0 2 3 2 2 0 0 2 3 0 4 4 4 0 3 2 1 2 1 4 4 4 1 3 4 3 4 3 4 1 1 3 2 0 0 4 3 4 0 4 4 1 2 0 4 2 1 1 1 0 0 2 0 4 1 0 4 3 1 4 3 3 3 0 2 0 0 4 1 4 2 0 3 1 4 1 4 1 2 3 4 2 0 1 2 1 3 1 3 3 0 3 1 4 3 2 3 0 4 1 4 3 2 3 1 2 1 4 2 1 2 3 0 0...

output:

YYYYY

result:

ok "YYYYY"

Test #200:

score: 0
Accepted
time: 14ms
memory: 8956kb

input:

1000
4 2 3 3 0 1 2 2 4 0 4 2 1 2 3 3 2 0 4 3 4 4 1 3 0 0 0 1 2 2 3 1 3 3 4 2 3 4 3 0 0 3 2 4 2 2 3 3 0 1 1 0 2 1 2 1 2 0 3 1 4 3 1 3 1 0 0 4 4 3 1 2 2 0 4 1 0 0 2 2 1 3 4 3 3 3 1 4 0 3 2 4 2 3 2 1 0 2 4 3 0 4 1 1 2 1 1 2 1 1 4 4 1 2 4 2 3 0 0 2 4 0 3 4 3 2 2 1 0 4 3 4 3 2 0 0 4 1 1 4 1 2 0 4 2 3 4 1...

output:

YYYYY

result:

ok "YYYYY"

Test #201:

score: 0
Accepted
time: 9ms
memory: 7888kb

input:

713
0 0 2 3 3 4 1 1 3 3 0 2 3 4 0 0 0 3 1 3 4 1 1 3 0 3 4 0 3 1 0 4 3 3 3 2 3 0 4 4 4 3 4 1 0 0 4 1 1 3 2 0 2 2 3 2 0 0 0 4 1 4 0 0 3 0 0 1 4 2 2 3 0 4 1 1 0 4 0 1 1 0 4 4 1 3 3 0 3 0 1 1 0 4 0 2 0 1 0 3 3 2 3 1 2 1 0 4 3 1 1 4 3 4 3 1 0 1 1 0 4 4 3 4 3 3 4 3 0 4 4 4 2 4 2 0 2 0 2 0 2 4 2 4 0 0 0 4 ...

output:

YYYYY

result:

ok "YYYYY"

Test #202:

score: 0
Accepted
time: 14ms
memory: 7632kb

input:

1000
1 4 0 0 3 2 3 1 2 1 3 3 4 3 4 2 1 2 4 3 2 4 1 0 0 0 1 0 0 2 3 4 4 2 0 3 2 3 1 3 2 4 0 0 1 4 4 3 4 2 3 3 2 0 3 3 3 3 2 3 1 0 4 4 0 0 0 4 1 3 2 3 3 2 1 4 2 4 0 1 0 2 1 3 0 4 0 4 4 4 3 3 3 4 2 4 0 1 2 0 4 0 4 3 4 2 4 0 1 3 4 1 0 4 0 4 2 4 0 3 1 0 3 1 2 4 4 4 3 4 3 2 4 2 0 1 2 2 0 0 1 2 0 4 3 3 3 3...

output:

YYYNY

result:

ok "YYYNY"

Test #203:

score: 0
Accepted
time: 15ms
memory: 9424kb

input:

1000
0 4 3 1 2 1 1 1 3 4 2 1 0 1 3 1 1 4 2 4 2 2 2 3 0 4 2 3 4 2 3 4 2 4 2 3 4 1 1 3 1 0 2 0 1 3 2 1 3 1 0 2 0 1 2 4 2 1 3 2 3 2 4 4 0 4 1 2 1 1 3 3 1 1 0 2 3 1 0 0 0 4 3 4 2 2 2 3 3 4 2 1 3 4 1 1 3 2 0 3 1 4 0 0 1 1 1 1 1 3 4 0 2 0 2 3 0 4 1 1 4 3 2 0 4 0 0 2 3 4 3 4 0 2 4 0 2 1 0 1 1 4 0 2 2 3 2 3...

output:

NYYYY

result:

ok "NYYYY"

Test #204:

score: 0
Accepted
time: 13ms
memory: 8856kb

input:

1000
4 4 4 0 0 1 0 3 2 2 4 0 2 2 3 4 2 4 2 3 3 2 3 0 4 3 1 1 0 1 1 2 0 0 1 0 0 1 4 2 3 4 4 1 0 0 2 0 3 0 1 0 1 1 4 2 1 3 0 2 4 1 4 1 3 1 4 3 1 1 3 1 3 1 1 4 4 2 2 4 2 2 0 0 0 2 1 0 2 3 1 0 4 0 3 3 3 4 2 4 2 2 2 0 1 4 3 2 3 2 1 1 1 0 1 4 2 2 1 0 1 3 1 2 1 1 2 2 1 1 2 3 2 1 2 2 2 2 0 1 3 4 3 1 1 1 2 0...

output:

NYYYY

result:

ok "NYYYY"

Test #205:

score: 0
Accepted
time: 15ms
memory: 7760kb

input:

1000
1 3 4 0 1 2 4 3 0 0 4 1 2 3 2 3 3 0 0 2 3 4 4 2 3 2 4 4 4 2 4 2 3 2 3 3 4 3 4 1 4 2 1 1 1 0 0 3 4 0 3 3 0 2 2 1 4 4 1 3 2 4 0 0 4 4 1 1 1 4 2 0 1 4 1 3 1 4 2 4 3 1 3 3 3 1 2 4 1 1 0 2 4 3 0 4 0 0 4 2 1 4 2 2 2 3 3 2 3 1 1 3 2 0 3 0 1 2 4 2 3 2 1 0 1 3 4 3 3 0 0 4 0 1 0 1 2 0 4 1 4 0 3 0 0 1 3 2...

output:

NYYYY

result:

ok "NYYYY"

Test #206:

score: 0
Accepted
time: 15ms
memory: 9040kb

input:

1000
4 4 2 2 0 4 2 0 0 3 3 4 2 2 0 4 2 3 4 1 1 1 0 0 1 2 1 1 2 3 3 4 2 4 4 4 4 1 4 2 3 0 2 1 1 0 3 4 3 4 0 4 4 2 1 4 4 1 4 2 0 1 0 3 4 3 3 0 1 1 2 0 3 3 0 2 2 3 1 3 1 3 2 1 3 2 4 1 0 1 3 2 0 3 4 0 2 1 3 0 3 2 0 3 1 0 0 1 3 4 4 1 2 4 0 2 2 2 0 4 0 3 3 4 2 3 4 0 3 3 3 1 4 1 4 4 0 1 2 1 0 0 4 1 2 3 0 2...

output:

YYYNY

result:

ok "YYYNY"

Test #207:

score: 0
Accepted
time: 13ms
memory: 7760kb

input:

1000
3 4 0 2 3 0 2 1 4 1 0 2 0 4 2 0 0 2 1 2 3 4 2 1 2 4 0 0 1 4 1 4 3 3 2 1 0 2 4 4 1 4 2 4 3 3 1 4 4 3 3 4 1 0 3 2 3 2 3 2 0 3 0 2 0 3 0 4 3 1 4 1 0 3 2 3 4 4 1 3 1 4 4 2 2 1 4 0 4 3 1 0 1 4 0 0 3 4 0 3 4 0 3 2 4 3 3 0 2 1 3 3 0 1 2 3 1 0 2 4 3 4 3 3 3 2 0 0 0 3 1 1 0 0 2 4 0 1 3 3 4 2 2 4 3 4 3 4...

output:

NYYYY

result:

ok "NYYYY"

Test #208:

score: 0
Accepted
time: 12ms
memory: 7764kb

input:

1000
1 0 1 3 4 3 3 3 4 4 2 4 2 0 1 3 1 2 0 1 0 2 0 4 4 4 4 3 3 1 1 0 3 0 0 0 2 1 3 1 1 1 3 4 1 3 0 3 4 3 3 3 1 4 2 1 4 2 3 1 2 2 4 1 1 2 3 4 2 0 1 3 4 3 3 0 1 4 2 3 3 0 4 0 1 1 2 2 1 1 0 3 3 2 1 0 1 1 0 2 3 0 0 1 3 1 0 2 4 3 0 2 0 2 4 0 4 1 3 1 1 3 4 4 3 0 1 3 0 2 4 2 1 2 4 0 0 0 2 3 4 1 1 3 3 4 1 0...

output:

YYNYY

result:

ok "YYNYY"

Test #209:

score: 0
Accepted
time: 16ms
memory: 8108kb

input:

1000
4 2 2 1 1 4 0 4 0 4 3 2 2 1 1 3 2 4 0 2 4 0 2 3 1 0 2 3 2 4 0 1 0 3 3 1 3 0 0 2 4 4 1 1 4 0 0 1 0 3 1 4 0 4 4 0 2 4 1 4 2 0 1 0 4 2 1 0 3 3 4 2 0 1 3 4 1 2 3 2 4 0 4 4 2 3 1 3 1 2 0 2 0 3 2 4 1 1 0 2 1 2 1 3 1 3 3 2 0 1 4 3 3 2 3 1 1 2 3 4 0 3 2 0 2 4 4 1 1 4 4 1 4 3 4 0 4 0 2 0 1 4 3 1 2 3 2 1...

output:

YYYNY

result:

ok "YYYNY"

Test #210:

score: 0
Accepted
time: 14ms
memory: 8400kb

input:

1000
2 3 4 1 1 1 0 3 1 0 2 0 3 0 4 3 1 2 3 4 2 2 0 1 1 2 4 1 1 0 0 0 3 0 0 4 3 3 0 2 2 0 1 4 0 0 3 3 0 2 3 3 2 1 3 3 1 3 1 2 1 3 1 1 3 1 1 4 3 4 2 4 3 0 3 3 2 1 3 0 0 3 4 3 0 3 3 4 1 0 4 4 1 4 3 3 3 2 3 3 0 2 3 0 2 2 3 1 3 0 0 1 0 1 4 2 4 2 1 1 0 1 2 2 2 1 4 1 3 2 3 4 0 4 2 4 4 4 0 3 3 2 4 3 0 1 4 3...

output:

YYNYY

result:

ok "YYNYY"

Test #211:

score: 0
Accepted
time: 14ms
memory: 7888kb

input:

1000
0 4 4 3 1 2 2 0 4 4 2 2 3 3 3 3 2 3 0 2 3 0 1 3 2 1 3 3 0 0 3 2 1 2 1 3 3 2 0 3 2 1 2 4 2 1 1 4 0 4 1 3 0 3 1 0 1 1 1 1 0 0 3 1 4 0 2 3 2 2 4 2 1 4 4 2 3 2 4 4 1 4 0 4 1 4 0 0 0 2 2 0 4 1 3 4 4 3 2 1 3 1 4 3 1 4 0 0 4 1 1 1 2 4 2 3 1 2 3 0 3 0 4 1 2 0 1 2 4 2 4 2 1 0 3 3 2 3 0 3 2 0 3 1 2 2 1 2...

output:

YYYYN

result:

ok "YYYYN"

Test #212:

score: 0
Accepted
time: 15ms
memory: 9648kb

input:

1000
1 4 0 0 3 2 3 1 2 1 3 3 4 3 4 2 1 2 4 3 2 4 1 0 0 0 1 0 0 2 3 4 4 2 0 3 2 3 1 3 2 4 0 0 1 4 4 3 4 2 3 3 2 0 3 3 3 3 2 3 1 0 4 4 0 0 0 4 1 3 2 3 3 2 1 4 2 4 0 1 0 2 1 3 0 4 0 4 4 4 3 3 3 4 2 4 0 1 2 0 4 0 4 3 4 2 4 0 1 3 4 1 0 4 0 4 2 4 0 3 1 0 3 1 2 4 4 4 3 4 3 2 4 2 0 1 2 2 0 0 1 2 0 4 3 3 3 3...

output:

YYYNY

result:

ok "YYYNY"

Test #213:

score: 0
Accepted
time: 10ms
memory: 9648kb

input:

1000
0 4 3 1 2 1 1 1 3 4 2 1 0 1 3 1 1 4 2 4 2 2 2 3 0 4 2 3 4 2 3 4 2 4 2 3 4 1 1 3 1 0 2 0 1 3 2 1 3 1 0 2 0 1 2 4 2 1 3 2 3 2 4 4 0 4 1 2 1 1 3 3 1 1 0 2 3 1 0 0 0 4 3 4 2 2 2 3 3 4 2 1 3 4 1 1 3 2 0 3 1 4 0 0 1 1 1 1 1 3 4 0 2 0 2 3 0 4 1 1 4 3 2 0 4 0 0 2 3 4 3 4 0 2 4 0 2 1 0 1 1 4 0 2 2 3 2 3...

output:

NYYYY

result:

ok "NYYYY"

Test #214:

score: 0
Accepted
time: 15ms
memory: 8232kb

input:

1000
4 4 4 0 0 1 0 3 2 2 4 0 2 2 3 4 2 4 2 3 3 2 3 0 4 3 1 1 0 1 1 2 0 0 1 0 0 1 4 2 3 4 4 1 0 0 2 0 3 0 1 0 1 1 4 2 1 3 0 2 4 1 4 1 3 1 4 3 1 1 3 1 3 1 1 4 4 2 2 4 2 2 0 0 0 2 1 0 2 3 1 0 4 0 3 3 3 4 2 4 2 2 2 0 1 4 3 2 3 2 1 1 1 0 1 4 2 2 1 0 1 3 1 2 1 1 2 2 1 1 2 3 2 1 2 2 2 2 0 1 3 4 3 1 1 1 2 0...

output:

NYYYY

result:

ok "NYYYY"

Test #215:

score: 0
Accepted
time: 14ms
memory: 9424kb

input:

1000
1 3 4 0 1 2 4 3 0 0 4 1 2 3 2 3 3 0 0 2 3 4 4 2 3 2 4 4 4 2 4 2 3 2 3 3 4 3 4 1 4 2 1 1 1 0 0 3 4 0 3 3 0 2 2 1 4 4 1 3 2 4 0 0 4 4 1 1 1 4 2 0 1 4 1 3 1 4 2 4 3 1 3 3 3 1 2 4 1 1 0 2 4 3 0 4 0 0 4 2 1 4 2 2 2 3 3 2 3 1 1 3 2 0 3 0 1 2 4 2 3 2 1 0 1 3 4 3 3 0 0 4 0 1 0 1 2 0 4 1 4 0 3 0 0 1 3 2...

output:

NYYYY

result:

ok "NYYYY"

Test #216:

score: 0
Accepted
time: 14ms
memory: 8148kb

input:

1000
4 4 2 2 0 4 2 0 0 3 3 4 2 2 0 4 2 3 4 1 1 1 0 0 1 2 1 1 2 3 3 4 2 4 4 4 4 1 4 2 3 0 2 1 1 0 3 4 3 4 0 4 4 2 1 4 4 1 4 2 0 1 0 3 4 3 3 0 1 1 2 0 3 3 0 2 2 3 1 3 1 3 2 1 3 2 4 1 0 1 3 2 0 3 4 0 2 1 3 0 3 2 0 3 1 0 0 1 3 4 4 1 2 4 0 2 2 2 0 4 0 3 3 4 2 3 4 0 3 3 3 1 4 1 4 4 0 1 2 1 0 0 4 1 2 3 0 2...

output:

YYYNY

result:

ok "YYYNY"

Test #217:

score: 0
Accepted
time: 14ms
memory: 9552kb

input:

1000
2 4 2 3 2 2 2 0 4 1 0 1 2 1 1 4 3 1 0 4 0 4 2 4 0 0 1 3 2 1 2 3 4 1 4 4 1 1 0 2 4 2 1 1 4 1 2 2 3 4 3 3 3 0 1 3 2 1 1 4 3 4 3 4 2 3 3 0 0 3 2 1 3 1 1 3 4 1 3 2 2 0 2 0 2 1 3 4 1 0 3 0 2 0 4 1 2 3 3 3 1 4 2 3 0 4 1 1 1 1 1 2 0 4 2 2 2 3 0 4 4 3 4 3 4 3 1 1 3 4 1 4 3 4 1 0 1 1 3 1 0 2 2 1 1 2 1 0...

output:

YYYYN

result:

ok "YYYYN"

Test #218:

score: 0
Accepted
time: 15ms
memory: 8784kb

input:

1000
0 3 4 0 4 3 0 1 0 0 1 0 0 3 0 1 0 0 4 0 2 3 0 2 4 1 3 0 2 3 3 0 3 0 1 4 2 0 2 0 3 0 0 1 1 3 2 2 0 2 1 4 3 2 2 2 1 0 2 3 3 3 1 4 3 4 2 4 2 2 0 2 2 4 3 2 4 1 1 1 3 2 3 3 4 4 1 2 3 3 4 4 4 0 0 2 4 3 3 2 4 1 4 1 2 2 3 3 4 1 4 1 1 2 0 4 2 4 2 2 1 2 2 3 0 0 2 4 4 0 1 4 3 1 0 0 0 1 2 1 3 2 2 4 4 1 0 1...

output:

YYYNY

result:

ok "YYYNY"

Test #219:

score: 0
Accepted
time: 17ms
memory: 9296kb

input:

1000
3 4 2 2 1 1 0 2 4 4 2 3 1 3 3 0 1 3 3 3 1 0 4 0 4 0 3 3 2 4 4 1 3 3 4 3 2 3 2 2 4 2 1 3 3 0 2 0 1 2 1 4 2 3 1 1 4 0 4 1 4 1 3 1 0 2 0 0 3 0 2 1 0 0 1 3 1 3 2 0 0 4 0 3 3 4 4 1 4 3 1 2 1 3 2 0 1 0 2 1 3 0 0 4 1 2 1 3 1 0 2 1 2 2 3 3 1 2 0 0 4 2 4 3 3 4 0 1 2 1 0 2 2 1 0 0 1 4 2 3 1 1 2 1 3 1 1 2...

output:

YNYYY

result:

ok "YNYYY"

Test #220:

score: 0
Accepted
time: 14ms
memory: 8532kb

input:

1000
4 4 2 0 2 3 2 2 0 1 2 0 0 2 1 3 0 3 1 3 4 3 0 2 2 3 3 4 4 2 1 2 4 3 0 3 1 2 2 1 4 4 1 1 1 3 0 2 0 1 2 4 4 1 0 3 4 3 3 1 2 4 0 3 2 1 0 0 1 2 0 3 3 3 3 0 2 3 1 4 1 4 2 0 4 3 0 3 3 1 1 0 4 4 1 4 0 1 1 4 2 1 2 1 4 4 1 2 0 0 4 1 0 2 4 1 3 4 2 1 1 0 1 1 2 0 0 0 2 3 3 4 0 3 1 4 4 3 1 1 1 2 3 0 0 3 4 3...

output:

YYNYY

result:

ok "YYNYY"

Test #221:

score: 0
Accepted
time: 12ms
memory: 9424kb

input:

1000
0 4 1 1 4 4 4 0 3 2 1 4 4 2 0 2 3 3 0 1 0 2 2 1 4 3 0 0 2 0 0 2 4 0 3 3 4 1 1 2 4 3 1 3 3 1 4 4 2 2 4 0 3 4 1 4 4 2 0 1 3 2 4 1 3 1 2 3 1 0 1 3 4 1 4 0 2 1 4 4 4 2 4 4 4 0 0 3 3 3 2 1 4 3 0 1 1 3 1 3 3 4 2 4 3 3 3 0 2 4 4 3 2 4 1 0 0 4 1 3 0 3 1 0 2 3 2 2 2 4 2 3 3 3 0 3 2 1 0 1 1 3 1 4 3 4 3 4...

output:

YYYYN

result:

ok "YYYYN"

Test #222:

score: 0
Accepted
time: 15ms
memory: 8908kb

input:

1000
3 4 0 2 3 0 2 1 4 1 0 2 0 4 2 0 0 2 1 2 3 4 2 1 2 4 0 0 1 4 1 4 3 3 2 1 0 2 4 4 1 4 2 4 3 3 1 4 4 3 3 4 1 0 3 2 3 2 3 2 0 3 0 2 0 3 0 4 3 1 4 1 0 3 2 3 4 4 1 3 1 4 4 2 2 1 4 0 4 3 1 0 1 4 0 0 3 4 0 3 4 0 3 2 4 3 3 0 2 1 3 3 0 1 2 3 1 0 2 4 3 4 3 3 3 2 0 0 0 3 1 1 0 0 2 4 0 1 3 3 4 2 2 4 3 4 3 4...

output:

NYYYY

result:

ok "NYYYY"

Test #223:

score: 0
Accepted
time: 16ms
memory: 9296kb

input:

1000
1 0 1 3 4 3 3 3 4 4 2 4 2 0 1 3 1 2 0 1 0 2 0 4 4 4 4 3 3 1 1 0 3 0 0 0 2 1 3 1 1 1 3 4 1 3 0 3 4 3 3 3 1 4 2 1 4 2 3 1 2 2 4 1 1 2 3 4 2 0 1 3 4 3 3 0 1 4 2 3 3 0 4 0 1 1 2 2 1 1 0 3 3 2 1 0 1 1 0 2 3 0 0 1 3 1 0 2 4 3 0 2 0 2 4 0 4 1 3 1 1 3 4 4 3 0 1 3 0 2 4 2 1 2 4 0 0 0 2 3 4 1 1 3 3 4 1 0...

output:

YYNYY

result:

ok "YYNYY"

Test #224:

score: 0
Accepted
time: 14ms
memory: 8524kb

input:

1000
4 2 2 1 1 4 0 4 0 4 3 2 2 1 1 3 2 4 0 2 4 0 2 3 1 0 2 3 2 4 0 1 0 3 3 1 3 0 0 2 4 4 1 1 4 0 0 1 0 3 1 4 0 4 4 0 2 4 1 4 2 0 1 0 4 2 1 0 3 3 4 2 0 1 3 4 1 2 3 2 4 0 4 4 2 3 1 3 1 2 0 2 0 3 2 4 1 1 0 2 1 2 1 3 1 3 3 2 0 1 4 3 3 2 3 1 1 2 3 4 0 3 2 0 2 4 4 1 1 4 4 1 4 3 4 0 4 0 2 0 1 4 3 1 2 3 2 1...

output:

YYYNY

result:

ok "YYYNY"

Test #225:

score: 0
Accepted
time: 15ms
memory: 8912kb

input:

1000
2 3 4 1 1 1 0 3 1 0 2 0 3 0 4 3 1 2 3 4 2 2 0 1 1 2 4 1 1 0 0 0 3 0 0 4 3 3 0 2 2 0 1 4 0 0 3 3 0 2 3 3 2 1 3 3 1 3 1 2 1 3 1 1 3 1 1 4 3 4 2 4 3 0 3 3 2 1 3 0 0 3 4 3 0 3 3 4 1 0 4 4 1 4 3 3 3 2 3 3 0 2 3 0 2 2 3 1 3 0 0 1 0 1 4 2 4 2 1 1 0 1 2 2 2 1 4 1 3 2 3 4 0 4 2 4 4 4 0 3 3 2 4 3 0 1 4 3...

output:

YYNYY

result:

ok "YYNYY"

Test #226:

score: 0
Accepted
time: 11ms
memory: 8404kb

input:

1000
0 4 4 3 1 2 2 0 4 4 2 2 3 3 3 3 2 3 0 2 3 0 1 3 2 1 3 3 0 0 3 2 1 2 1 3 3 2 0 3 2 1 2 4 2 1 1 4 0 4 1 3 0 3 1 0 1 1 1 1 0 0 3 1 4 0 2 3 2 2 4 2 1 4 4 2 3 2 4 4 1 4 0 4 1 4 0 0 0 2 2 0 4 1 3 4 4 3 2 1 3 1 4 3 1 4 0 0 4 1 1 1 2 4 2 3 1 2 3 0 3 0 4 1 2 0 1 2 4 2 4 2 1 0 3 3 2 3 0 3 2 0 3 1 2 2 1 2...

output:

YYYYN

result:

ok "YYYYN"

Test #227:

score: 0
Accepted
time: 14ms
memory: 9036kb

input:

1000
3 2 2 0 4 2 3 2 1 1 1 1 4 2 4 1 3 4 0 0 3 3 4 3 0 4 1 1 1 4 0 4 1 0 2 0 4 1 3 4 4 2 0 2 0 3 3 4 2 0 0 4 2 2 2 0 1 1 2 4 3 4 3 0 3 1 2 4 4 1 2 0 0 3 4 3 0 3 1 4 0 1 4 0 1 0 3 1 4 0 3 0 2 2 4 1 0 1 2 1 3 4 1 2 1 4 0 1 0 0 3 3 3 4 1 4 1 4 2 0 2 0 1 1 2 2 2 0 1 2 0 1 3 2 0 4 4 3 1 3 4 0 1 0 2 4 4 4...

output:

NYYYY

result:

ok "NYYYY"

Test #228:

score: 0
Accepted
time: 13ms
memory: 8020kb

input:

1000
1 1 4 1 4 4 4 2 4 0 2 2 0 1 0 4 3 0 3 2 4 0 0 1 0 4 3 4 4 1 1 4 2 2 4 0 0 4 3 1 4 3 1 0 0 3 1 2 1 2 4 4 4 1 1 3 2 0 3 3 2 2 2 0 3 4 1 3 4 3 0 4 3 2 0 3 1 0 2 4 0 1 4 3 2 3 0 2 3 2 1 0 3 3 0 1 2 1 1 4 1 0 2 3 2 1 1 3 2 0 3 2 1 3 3 2 1 0 3 0 4 2 2 0 1 1 4 1 1 2 2 4 0 3 3 3 4 2 0 3 1 2 2 3 4 1 0 1...

output:

YNYYY

result:

ok "YNYYY"

Test #229:

score: 0
Accepted
time: 14ms
memory: 7508kb

input:

1000
3 3 0 4 4 0 0 3 0 4 1 0 2 0 4 2 4 0 3 2 3 1 3 4 3 0 2 1 4 2 3 2 2 1 2 0 1 3 4 3 0 1 2 2 3 3 0 1 3 4 2 3 4 4 1 3 0 4 4 0 3 0 1 0 4 0 4 1 3 3 3 0 2 0 3 2 3 1 2 3 1 4 0 2 0 1 1 1 3 4 0 4 1 4 1 3 2 4 0 4 3 0 1 1 1 1 0 3 2 1 2 2 2 0 4 3 0 4 3 4 0 1 3 4 2 2 1 3 4 3 1 2 3 1 0 4 3 1 4 3 2 1 3 2 1 2 3 2...

output:

YYNYY

result:

ok "YYNYY"

Test #230:

score: 0
Accepted
time: 14ms
memory: 8632kb

input:

1000
1 3 0 4 0 1 2 3 0 1 1 3 3 2 2 0 0 0 3 1 0 2 2 1 3 0 4 4 3 3 4 2 0 1 3 4 0 1 0 2 4 3 4 1 0 4 3 2 3 1 3 4 3 2 0 3 4 2 0 3 4 2 0 0 2 4 0 1 3 4 3 2 0 0 0 2 1 2 2 2 2 0 3 4 1 0 1 3 3 0 4 1 0 0 0 4 3 4 0 0 1 1 1 0 4 3 4 2 3 4 3 1 4 3 0 2 1 4 4 0 4 0 0 2 4 1 1 0 4 3 1 0 3 0 4 3 3 0 4 2 3 2 3 4 3 1 0 4...

output:

YYNYY

result:

ok "YYNYY"

Test #231:

score: 0
Accepted
time: 13ms
memory: 9168kb

input:

1000
1 2 4 1 3 0 3 3 2 1 1 1 2 0 3 3 3 4 3 3 2 2 4 0 4 0 2 4 2 0 0 4 4 2 1 4 0 4 0 0 3 2 3 3 1 4 2 3 0 4 0 4 1 2 3 2 3 2 4 0 2 3 4 0 3 0 4 0 1 1 4 3 3 4 4 2 0 0 3 0 2 3 4 3 4 2 3 1 1 1 4 1 1 4 1 3 1 1 4 0 2 4 1 4 1 0 0 3 2 1 4 1 0 0 2 0 2 4 1 0 3 0 2 1 0 1 0 0 0 1 3 0 1 1 4 3 4 3 3 0 2 4 2 0 4 2 1 2...

output:

YYNYY

result:

ok "YYNYY"

Extra Test:

score: 0
Extra Test Passed