QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#606048#1380. Wybór zadań [C]qiuzx10 ✓2ms6828kbC++20849b2024-10-02 21:49:262024-10-02 21:49:27

详细

Subtask #1:

score: 1
Accepted

Test #3:

score: 1
Accepted
time: 1ms
memory: 6748kb

input:

43
4C 1B 4B 5C 1C 3C 4B 5B 1C 5C 5C 2C 4A 1B 4B 5C 5B 1A 5B 2A 1C 4A 1C 5B 4C 4C 5A 1C 4A 5B 2B 1A 3B 5A 5A 3B 4C 4B 5A 1B 2C 1C 2B

output:

NIE

result:

ok single line: 'NIE'

Test #4:

score: 1
Accepted
time: 2ms
memory: 6828kb

input:

55
4A 2A 4A 1A 2A 4A 4C 3C 4C 1A 5A 1A 1C 5B 2C 2A 4C 1A 2B 1C 5B 3C 4A 4B 2B 3A 1C 3C 2A 5B 5B 2B 2B 2B 1C 5B 1B 4B 4A 3C 5B 1B 3C 5B 3B 3C 2C 1B 2A 3B 4B 2B 2A 2A 1A

output:

NIE

result:

ok single line: 'NIE'

Test #5:

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

input:

80
5B 3B 2A 5C 3B 4C 1C 5B 5C 1A 3B 3B 3A 2A 5A 1A 5C 4A 4C 4B 4C 2A 3A 1A 1A 2C 5B 1B 5C 3A 3A 1A 3A 1C 3A 2C 1A 1B 3A 2A 4A 1A 5B 1A 1C 4A 5A 5B 3B 3B 2C 4B 1B 5C 4C 4A 3B 3B 5C 2A 3A 2A 2C 2A 1B 4A 4B 3A 5A 5A 2B 3B 1A 1B 1C 4C 2C 1A 4B 4B

output:

NIE

result:

ok single line: 'NIE'

Test #6:

score: 1
Accepted
time: 1ms
memory: 6684kb

input:

45
3A 1A 2B 5A 3A 4B 5A 3B 1C 2B 2A 4C 2B 3A 3B 4B 2A 4B 1B 5C 4B 3C 1C 1A 2B 2B 3C 3A 1B 5B 4C 1A 5A 4B 5C 5A 2A 2B 4C 5A 4C 5A 2B 2A 4B

output:

NIE

result:

ok single line: 'NIE'

Test #7:

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

input:

17
1B 3A 5C 2C 5A 1C 2A 4B 2B 3C 5B 5C 3B 4C 4A 1A 5B

output:

NIE

result:

ok single line: 'NIE'

Test #8:

score: 1
Accepted
time: 1ms
memory: 6756kb

input:

100
4A 4A 5B 4B 1A 4A 1B 1C 4C 5C 2A 2B 3C 4A 4A 4A 5C 2C 4A 4A 5A 3C 3C 4B 1B 1B 5B 1B 1A 3C 5B 2B 3C 1C 5A 1A 2A 2A 4C 5C 5B 1B 3A 3A 3C 5B 5C 5B 2B 5B 4B 1B 5B 5C 5C 5C 4C 1C 2C 4C 3C 2C 4A 1C 2B 3A 2C 4A 4A 3C 1C 4B 5A 4A 1A 2A 2A 5A 4B 2A 5A 2A 2A 5C 4A 1B 3A 2A 4C 1C 5B 3A 1C 5B 3C 4C 2A 1A 3C...

output:

NIE

result:

ok single line: 'NIE'

Test #9:

score: 1
Accepted
time: 1ms
memory: 6672kb

input:

99
1A 4A 5B 1C 3C 2A 2C 2A 3B 5A 4C 3A 1A 3B 3A 3C 5B 2C 2B 2B 1A 5B 3B 5A 1B 5A 3B 3C 3C 2C 5B 2B 3B 3B 1B 5C 1B 5B 1B 1B 1A 1C 5C 4A 1A 1A 5C 1A 5A 3C 2A 5B 4C 2A 1A 4A 2C 1B 3B 2B 5B 5C 1C 1B 4A 3B 1A 1A 2A 1B 2B 2C 2A 5A 5B 5C 1A 2C 5B 1A 2C 5B 2B 5C 5C 5B 1A 2B 1B 4A 5A 2B 3A 4C 4A 5A 1B 5A 3C

output:

NIE

result:

ok single line: 'NIE'

Test #10:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

58
3A 5C 1B 1B 2C 4C 1B 1B 1B 3C 5A 5B 5B 4B 5B 4A 1A 3A 2C 3B 4B 2B 1A 5B 2C 1C 5C 2B 4C 1B 2C 1A 4A 5C 1C 1B 3A 5A 3B 1C 2C 4B 1A 1A 1B 5B 3C 3C 4C 1C 1A 3A 2C 5B 1C 5B 1B 1B

output:

NIE

result:

ok single line: 'NIE'

Test #11:

score: 1
Accepted
time: 1ms
memory: 6684kb

input:

70
5B 3B 2B 3A 5C 5C 5C 3B 1B 4C 2A 4B 5A 3C 3C 5C 4A 1B 5A 3B 2C 5C 2A 2A 3B 2B 4A 1C 2B 5B 4C 5A 3A 3A 1A 4B 1B 5C 3A 3A 4B 5C 4A 3A 1A 2A 5B 1C 2A 1A 4B 3A 1B 2B 4C 1C 5B 2C 4B 2B 2C 5A 1C 1C 4B 5B 4C 1B 2B 4A

output:

TAK

result:

ok single line: 'TAK'

Test #12:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

25
5A 2A 1C 2B 5C 4A 4A 1C 1B 5C 4B 5B 3A 4C 5A 2C 3B 2C 5B 3C 5A 4C 1C 5A 5A

output:

NIE

result:

ok single line: 'NIE'

Subtask #2:

score: 1
Accepted

Test #13:

score: 1
Accepted
time: 1ms
memory: 6828kb

input:

94
5C 1C 4A 1A 1A 4C 2A 3A 1B 4B 5C 3B 1A 4A 5B 1C 1B 3A 4C 5C 1C 1A 5B 5B 1B 1A 2A 5C 3B 4A 3A 4C 1A 3A 5B 2C 2A 1A 3B 1C 3B 4A 1C 1C 4B 1A 2C 2A 4A 3C 4A 1C 1A 3C 5C 1B 2C 4B 1B 2C 4B 4B 1C 4C 2B 3C 3C 3B 5B 1B 5C 3A 1B 3C 2A 3B 3A 3B 3B 3B 3A 2A 4C 1B 3A 3B 2C 3B 2C 1A 2C 1A 1A 4C

output:

NIE

result:

ok single line: 'NIE'

Test #14:

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

input:

67
3C 4C 1A 4B 2C 3B 5B 4C 2B 1C 1C 1A 3A 1C 4B 1A 5C 3A 3A 1C 3A 5C 2C 3A 5C 3A 3B 2A 5A 5A 3B 1B 3C 4A 5B 3C 3C 1B 1A 1A 5B 4C 2B 5C 1B 4C 4A 3B 5C 5A 3C 4A 1C 4A 2C 1C 2B 3A 3A 5B 2B 4C 5A 5B 4B 4A 3B

output:

TAK

result:

ok single line: 'TAK'

Test #15:

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

input:

64
2C 1B 5A 3B 1B 3C 4B 4B 1A 1C 2B 2B 2C 3A 3A 2C 5A 1C 3C 4C 1B 3B 3A 5A 4B 4B 5A 4B 5A 4B 4B 1B 4A 5C 3B 2B 2A 4C 1B 5C 5B 2C 5B 5C 5A 5A 1C 1C 5A 4A 5B 1C 3B 4B 3C 5C 2C 4B 5C 2C 4A 5C 5B 5C

output:

TAK

result:

ok single line: 'TAK'

Test #16:

score: 1
Accepted
time: 1ms
memory: 6776kb

input:

81
5B 2C 1C 4C 5A 2B 5C 4B 2B 3A 4A 3A 1C 3A 3B 1B 2C 4B 3A 4B 3C 5C 4A 5B 4A 2B 1C 3B 4A 2A 4B 3B 5C 1C 2A 1C 2B 2C 1B 3C 2B 3A 3C 3B 2A 5B 1C 2B 5C 5A 4A 5B 3B 3C 1A 5C 4B 2A 5B 3C 3C 3A 2B 1C 1C 3B 5A 2A 5A 3B 2C 4A 5A 4A 1B 4A 1C 5A 5C 3B 5B

output:

TAK

result:

ok single line: 'TAK'

Test #17:

score: 1
Accepted
time: 1ms
memory: 6768kb

input:

51
5C 2B 2A 1A 3B 1B 4C 5C 5B 3B 2C 5C 2A 5A 5B 1C 1C 1A 5C 3A 5A 1B 5A 1B 4A 5B 1A 5A 4C 3B 5B 1C 4C 1B 2C 4B 1C 4C 4B 4C 5A 2A 1B 2A 2C 5C 5A 5A 1B 1C 3C

output:

TAK

result:

ok single line: 'TAK'

Test #18:

score: 1
Accepted
time: 1ms
memory: 6780kb

input:

86
5B 3B 1C 4A 2A 2B 2B 1C 1C 1B 1B 1C 3A 1C 2C 2C 1A 1C 5B 2A 5B 4A 2A 5C 5A 2A 2C 1C 2B 2A 4A 4A 2C 1A 3B 3C 1A 2B 3B 4A 1C 2B 2C 1B 2B 2B 2A 3C 4A 2B 3C 3A 3C 1C 4A 1C 1B 2A 5A 3B 1C 1A 1A 1C 5B 3C 3A 3A 3C 2C 5B 5A 2A 2A 3A 4C 3C 2B 1B 3B 5A 2C 5B 1B 5C 4B

output:

TAK

result:

ok single line: 'TAK'

Test #19:

score: 1
Accepted
time: 1ms
memory: 6628kb

input:

88
1C 1A 5C 3B 4A 2B 5A 3B 3B 2C 3C 5B 1A 4B 3A 3B 2A 1B 2A 3C 1A 5B 3A 2C 2B 4B 5A 3B 3B 2A 3A 3A 2A 1C 2B 3C 1A 5A 2C 4A 2A 4B 1A 5B 5A 2B 1A 4B 4C 5B 2B 1C 1A 5B 5A 5B 2C 2A 4C 1A 1A 5B 1C 5C 5B 1C 1C 5C 5B 5A 2B 5B 5A 3A 3B 3A 3A 3C 3C 3C 2C 3C 5A 4C 2A 4C 2C 5C

output:

TAK

result:

ok single line: 'TAK'

Test #20:

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

input:

36
4A 5A 3A 2B 1C 5C 1C 5C 3A 4A 5A 3C 1A 5C 2A 2B 5A 2C 3A 5C 3B 5B 2C 5B 2A 3A 2B 5A 3B 4B 2A 3A 2C 4B 4C 4C

output:

NIE

result:

ok single line: 'NIE'

Test #21:

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

input:

80
5B 5B 5B 3C 5C 1B 1B 5A 1B 5B 2B 5B 1C 1A 3C 5A 1A 3B 3B 3C 2C 3A 5A 5C 2C 4A 1B 4C 1B 5C 5B 4A 2B 1C 5A 5A 3B 5A 3C 4B 2A 3A 1A 2C 2A 4B 1C 4A 3B 3C 5C 1B 4C 2B 4B 2A 1A 2A 2B 2C 3B 1B 4C 2C 3B 4A 3B 3A 4B 4A 1C 1A 5C 2B 3B 5C 1B 5B 2B 1C

output:

TAK

result:

ok single line: 'TAK'

Test #22:

score: 1
Accepted
time: 1ms
memory: 6748kb

input:

62
5A 3B 3C 3C 4B 3A 2B 3C 1B 5A 2C 2C 1C 2B 5B 5A 1C 5A 1C 5A 5B 2A 4B 5C 1B 3C 1C 2B 5B 2C 4B 1B 2C 1C 4A 5B 2C 1A 4B 2A 5A 2C 3A 2A 4A 2A 3C 5B 4A 4B 1C 3C 1C 2A 1C 4B 1A 3C 2A 2C 2B 1B

output:

NIE

result:

ok single line: 'NIE'

Subtask #3:

score: 1
Accepted

Test #23:

score: 1
Accepted
time: 1ms
memory: 6708kb

input:

80
4A 2C 4A 2B 2C 5A 4C 2A 2B 1B 2A 1A 1B 5B 2B 5B 1A 5A 4C 3A 2A 5C 3C 2B 5B 1A 2B 4C 5B 3C 3A 4C 1B 4C 2B 2C 1C 3B 2B 5B 2A 1B 2B 1A 5A 3B 4A 2B 5A 5B 5A 3C 1C 3A 2C 3B 3C 1C 3C 1A 1A 3B 1A 5B 4A 1C 5A 2C 5B 2C 3B 1B 1C 1A 2C 2B 3C 2B 3B 2A

output:

NIE

result:

ok single line: 'NIE'

Test #24:

score: 1
Accepted
time: 1ms
memory: 6756kb

input:

86
5C 5C 3C 1B 3C 5C 3C 5C 2C 5C 4C 3B 4C 1A 3B 1C 4C 1C 3C 2B 4B 1B 5A 1B 5C 3C 1A 3A 4C 1A 4B 3B 5B 3B 5C 1A 2C 2A 5C 4B 1C 2A 5C 4B 1C 4B 3A 1A 2C 2B 2C 4B 3B 1B 2A 2C 3A 3A 2A 3C 4C 3C 4B 5B 4B 3A 3B 3A 3C 3B 3B 3B 5C 2A 2B 4B 4C 4C 2B 3A 5A 5A 5C 5B 3C 5B

output:

NIE

result:

ok single line: 'NIE'

Test #25:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

58
4C 3B 5C 2A 3B 1A 5B 2A 2A 3B 5B 3C 3B 5A 2A 5C 1B 5C 4A 5B 1A 1C 3B 2A 5C 4B 4B 5C 5A 2A 4B 2C 4B 2C 4B 1A 4A 3B 1C 5A 2A 1C 3C 5B 4A 5A 5B 4C 3C 4C 1C 2C 2A 2B 5B 1A 1B 2A

output:

NIE

result:

ok single line: 'NIE'

Test #26:

score: 1
Accepted
time: 1ms
memory: 6812kb

input:

80
5C 1A 4A 4C 5A 2C 4A 5A 4C 4B 3A 2A 5B 1B 3B 1C 2B 3A 1B 4C 1C 4A 5A 2B 1B 5C 2A 3C 5B 3C 4A 3A 4C 1C 4A 4A 3B 1C 3B 1C 2B 4C 5A 4A 2B 5A 1B 1C 5B 3C 1A 1B 5C 3B 1A 4C 3C 3B 1A 5A 2B 3B 3A 2B 3C 2A 4A 3A 1B 1B 3A 4A 4C 1B 5C 1B 5A 1B 2B 3B

output:

TAK

result:

ok single line: 'TAK'

Test #27:

score: 1
Accepted
time: 1ms
memory: 6692kb

input:

41
5A 2A 4B 2A 1A 3C 1B 3C 4A 1A 1C 5C 5C 5B 1B 5A 5B 2C 2B 2B 2A 4C 1A 5C 3B 3C 1C 1C 3C 4C 4B 4B 5C 2C 1C 4A 3B 5B 3C 5C 3A

output:

TAK

result:

ok single line: 'TAK'

Test #28:

score: 1
Accepted
time: 1ms
memory: 6828kb

input:

84
4C 4C 4A 5A 4B 2B 3C 4B 2A 4C 5B 2B 2C 2A 5C 4A 3C 3B 5B 5B 4B 5A 2A 2B 3C 2B 5A 1C 2B 1B 1B 5B 5B 3A 4C 3C 5A 4A 4B 4C 1C 3B 1C 1A 1B 1C 3C 1B 1B 5B 5B 4B 3C 2B 3B 4C 1A 4B 1A 1A 3C 5A 3B 2C 2A 3C 5A 2A 4C 1B 3A 5A 2C 1A 1A 5C 2C 4B 5B 1B 1C 1C 1C 5B

output:

TAK

result:

ok single line: 'TAK'

Test #29:

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

input:

92
1B 5B 4B 5B 1A 4A 3A 2A 2B 4B 4A 2A 5C 3C 4A 1B 5B 1C 3A 5C 2B 5A 1A 1B 1A 4A 5C 2A 1A 1A 5A 2A 2B 1A 5B 5B 2A 1A 2A 1A 3A 2C 3B 1A 3B 4B 2B 4C 1B 1B 4A 3C 2B 1A 4A 3B 5B 1A 3B 4B 1A 3C 2A 5C 3C 3B 1B 3C 3B 2A 2B 1C 4C 4C 5A 3A 2B 1C 4C 4A 1A 1A 5B 1A 1A 1A 3B 5A 5B 3C 2A 1C

output:

TAK

result:

ok single line: 'TAK'

Test #30:

score: 1
Accepted
time: 1ms
memory: 6748kb

input:

64
1C 5C 1A 3C 1B 2C 5A 3C 1C 1A 1B 5C 3A 1A 4B 2B 4A 3C 5B 4A 4A 2B 2C 4C 3A 3A 3B 2C 3B 5C 1A 2A 3C 5C 3B 3B 2A 1B 1A 4C 5B 5A 2C 2B 3C 4B 4B 1C 2C 4C 3A 2B 2C 2A 2A 2A 3B 4B 5A 5C 5C 1C 2B 1C

output:

TAK

result:

ok single line: 'TAK'

Test #31:

score: 1
Accepted
time: 1ms
memory: 6692kb

input:

36
3B 1C 2C 2B 2C 5C 4C 2C 4A 5B 2B 2B 2C 5B 2B 2A 1B 2C 4A 4B 5C 2B 5A 5A 2A 1A 4B 4C 3A 4C 5B 4B 3C 2C 3C 5B

output:

TAK

result:

ok single line: 'TAK'

Test #32:

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

input:

57
5C 4B 4B 5A 5C 3A 4B 2B 4C 1C 1B 3B 3B 1B 5B 5A 5B 4C 2B 5C 5C 3A 2A 3C 3C 2B 4B 1C 1C 2B 1A 4B 5B 1B 4A 3C 5A 3C 1A 5A 1B 4B 3C 3A 2A 4A 3A 3B 1B 1B 3B 4C 3C 1B 3A 5C 5B

output:

NIE

result:

ok single line: 'NIE'

Subtask #4:

score: 1
Accepted

Test #33:

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

input:

100
5C 3C 2C 4B 4B 1C 2B 5C 4B 5A 4A 2C 4A 2B 3C 5B 4C 4A 1C 1B 5A 2C 2A 5B 3A 4C 5C 4A 3C 2B 2C 5A 2B 3B 5C 2B 3B 1A 4B 1C 1C 2C 3B 3B 4C 4A 5A 3A 3B 2B 1C 1A 4A 4B 3A 1A 3A 4A 1A 5C 1A 1C 2A 3A 1C 1A 2A 3A 3B 5B 1C 1A 4B 5A 1B 1A 2C 3A 4C 5A 2C 4A 4C 1C 4C 4A 3B 3B 1B 4B 2B 3B 5C 3C 4C 5B 1C 1C 4B...

output:

TAK

result:

ok single line: 'TAK'

Test #34:

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

input:

21
1A 2C 1B 3C 4A 5B 4B 4A 5A 5B 3B 1C 5A 2C 2C 3A 5B 5A 5B 4A 5C

output:

NIE

result:

ok single line: 'NIE'

Test #35:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

48
5A 1B 5C 5C 3C 4B 4A 3A 2A 4A 1A 4B 5C 5B 5A 5A 1C 3C 2B 3A 2B 3B 5B 4B 3A 1A 3A 5C 3A 1A 2B 5B 3B 3B 4C 1C 3B 2B 1C 4C 2A 4C 1A 5B 5C 1C 3B 4B

output:

NIE

result:

ok single line: 'NIE'

Test #36:

score: 1
Accepted
time: 1ms
memory: 6748kb

input:

61
3A 5B 4C 4A 1A 4C 3B 3B 3C 1B 1C 1A 3B 1C 2A 5C 3B 3A 1B 5A 4B 1C 3C 3B 3C 1B 1B 5C 1C 1C 3A 1C 3B 5C 4C 3C 4B 3C 1A 2B 1B 3B 4C 2A 1C 1B 1C 1A 5B 5C 5B 3C 1A 1B 4A 1C 3C 5A 4C 1A 4B

output:

NIE

result:

ok single line: 'NIE'

Test #37:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

86
5A 2B 1C 1B 3A 4C 2C 3B 2B 3C 1B 5B 5A 2B 1C 5B 2A 4C 4C 2A 2C 1C 1C 3A 4A 3B 1B 1B 4B 3A 3C 4A 2B 3B 2B 4B 3A 3C 2C 4C 1C 3C 2A 2A 4B 1B 1B 3C 1A 2C 4C 3A 2A 4B 3A 2B 1A 1C 2C 5B 4C 3B 3C 1C 3B 4A 4A 4C 3B 2B 5B 3B 1A 5B 2A 1B 4A 2C 1A 5A 3A 1A 1A 2A 4C 3C

output:

NIE

result:

ok single line: 'NIE'

Test #38:

score: 1
Accepted
time: 1ms
memory: 6772kb

input:

63
1A 3B 5C 5C 2B 5A 5C 4B 4C 2C 3B 4C 1C 4C 4C 5C 3C 5A 1A 5C 1C 5C 4A 2A 5C 1A 1B 2B 1B 3C 5B 5A 4C 5C 1A 5B 2C 1B 4B 1B 2A 5C 2C 1C 3C 4B 2B 5A 5B 3C 4B 1C 4C 5B 2A 1C 2A 5A 3C 2C 1A 5A 5B

output:

NIE

result:

ok single line: 'NIE'

Test #39:

score: 1
Accepted
time: 1ms
memory: 6628kb

input:

25
3C 2A 3B 1C 3A 2A 4A 5B 3C 5A 5B 1C 4C 3B 5A 1B 1C 3A 5B 4B 1C 2C 1A 5B 5C

output:

NIE

result:

ok single line: 'NIE'

Test #40:

score: 1
Accepted
time: 1ms
memory: 6680kb

input:

35
4C 1C 3C 5A 1C 3B 4A 3A 2C 4B 3B 1A 4B 5C 3C 4C 5C 1B 3A 5A 2B 4A 2B 4C 5C 1A 5C 5B 2B 1C 1B 1B 2A 2B 1A

output:

NIE

result:

ok single line: 'NIE'

Test #41:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

46
4B 4C 3B 1C 1C 1C 1B 4B 5B 1B 2B 4A 1C 1B 1A 2B 4A 5C 5B 4A 4C 4B 5A 1A 1B 1C 1C 2C 3A 4A 4B 3B 4C 5C 5B 3A 3A 4B 4B 1A 3B 4C 1B 5C 3C 2B

output:

NIE

result:

ok single line: 'NIE'

Test #42:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

1
5C

output:

NIE

result:

ok single line: 'NIE'

Subtask #5:

score: 1
Accepted

Test #43:

score: 1
Accepted
time: 1ms
memory: 6808kb

input:

95
4A 3A 4C 2A 5B 2B 4B 1C 4C 3A 3C 3A 5B 4B 3B 4C 1C 5A 1C 1C 3C 1A 3A 3C 4A 4B 4C 4A 4A 4A 3B 1B 2B 1B 4A 5A 2A 2B 3B 2C 3C 5B 3A 2B 1B 3B 1B 2B 5C 2C 4C 2A 1B 3B 2B 4C 4C 2C 1B 5B 1B 3B 2C 3C 4B 4B 3A 3C 1C 4C 3C 5B 3A 2C 4B 3B 4B 4C 5A 5B 2C 5A 5A 1B 3B 3A 1C 5B 5A 4A 5A 5A 4C 4C 3A

output:

NIE

result:

ok single line: 'NIE'

Test #44:

score: 1
Accepted
time: 1ms
memory: 6684kb

input:

7
2C 1C 1A 1B 2A 3A 1B

output:

NIE

result:

ok single line: 'NIE'

Test #45:

score: 1
Accepted
time: 1ms
memory: 6632kb

input:

99
2C 5B 3A 4C 3C 2A 4B 4B 4A 4B 1B 5B 5B 1A 3A 1C 4A 3C 3A 1A 2C 3A 3A 4C 1A 5B 5B 4C 4C 2A 5A 4C 5B 5C 2A 5B 3A 4B 5A 1A 2A 3C 3C 4A 1A 5B 4A 4A 3C 3C 1B 5B 5B 1A 3A 1A 5C 5A 2B 4C 3A 5A 2C 4C 2C 5A 5C 2C 5A 4A 5A 4B 2C 5C 5B 2C 1B 5C 4C 2C 1B 2A 4C 5A 3A 3A 3C 2C 1C 2B 4A 1B 5C 3A 5B 3A 1B 2C 2C

output:

NIE

result:

ok single line: 'NIE'

Test #46:

score: 1
Accepted
time: 1ms
memory: 6756kb

input:

100
2B 2B 5A 5B 5B 3A 3A 4A 5C 3B 5C 1B 2B 5A 1B 5A 4C 2A 1C 4B 3C 1C 4C 4C 4B 5A 3A 5B 2A 1B 3C 1C 1B 1A 1A 2A 3A 4A 5C 5B 5B 3B 5A 5B 3A 2A 2B 1C 1C 5A 5C 2A 1C 1C 4C 2B 1B 4A 1C 4C 1C 5C 4A 4B 3C 3C 5C 5A 3C 5C 3C 3B 2B 3B 1B 4B 3A 5C 4A 4B 4A 1A 3A 4A 3C 5B 3C 3A 2B 5B 3B 5B 3A 5A 1C 5A 3C 2A 4C...

output:

NIE

result:

ok single line: 'NIE'

Test #47:

score: 1
Accepted
time: 1ms
memory: 6812kb

input:

86
2B 2C 1A 3A 5C 1A 1A 1B 3A 2C 5A 2A 4B 4A 4A 2A 4A 5A 5B 4B 2C 2C 5B 3A 4B 4B 4A 2A 3B 5A 1B 3A 3A 5A 4C 4B 5A 4B 4C 1B 5B 1A 3C 5B 4C 5B 4A 5A 3B 2A 3B 1B 1A 2A 5C 2B 1C 3A 5B 5B 4A 1A 5A 3B 1C 4A 4B 1B 4A 5B 1B 2B 2B 4B 4A 1A 2A 2B 2C 4B 2A 5B 2C 2B 4C 4C

output:

TAK

result:

ok single line: 'TAK'

Test #48:

score: 1
Accepted
time: 1ms
memory: 6808kb

input:

57
3C 3C 5C 1B 4A 4C 2A 5B 1A 3C 2B 5C 4C 3A 2B 5B 4A 3A 5A 2A 4B 2B 5C 2B 2A 3A 3B 4B 5A 1B 2C 1C 4A 5A 5A 4A 3C 5C 2C 3A 1C 3B 5B 1C 5A 3B 5B 5C 2B 3C 5B 2A 2C 1C 3C 1C 3B

output:

TAK

result:

ok single line: 'TAK'

Test #49:

score: 1
Accepted
time: 1ms
memory: 6812kb

input:

48
2B 3A 4A 4A 3B 2C 4B 5B 1A 5B 2A 1A 1B 4B 5A 5A 5B 5B 3B 4B 3A 5B 2B 4B 3A 5C 4C 1C 5B 3B 1B 3C 5B 5C 3B 2B 5B 5A 3C 3B 4A 2B 5C 1B 1B 1B 5A 3C

output:

TAK

result:

ok single line: 'TAK'

Test #50:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

86
2C 1C 5B 3B 1C 2C 4C 5C 3B 3A 5A 5B 2C 2C 3C 5C 3C 1C 2C 5C 4C 1A 2B 1C 2A 3C 4C 5A 2B 5A 5C 4C 5C 5A 1A 4C 4B 2C 5A 5A 1A 3B 3C 5A 3C 3C 2C 2A 5A 2C 5C 2C 3B 1A 4A 2C 1B 2C 2C 2B 2A 3C 5B 1A 3C 4A 4C 2A 1C 3C 3A 5B 3A 2A 1A 5C 2B 2B 3A 5B 3C 2B 3A 2A 3B 4C

output:

TAK

result:

ok single line: 'TAK'

Test #51:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

66
1B 1A 2C 3A 2C 4A 4B 3C 5B 2B 5B 5A 5C 5C 5C 5B 2B 2C 2A 1C 4B 5C 3A 2A 5A 1A 2C 1C 4A 5A 4B 4B 4B 2B 3B 4A 3C 4B 1C 1A 1C 2B 2C 5B 3B 1C 1B 3B 1B 4A 4B 4A 2B 2C 1B 5B 1C 5A 3B 1C 2B 5A 3C 2A 5B 3C

output:

NIE

result:

ok single line: 'NIE'

Test #52:

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

input:

87
4B 2A 1A 5C 3A 1A 3A 1B 2C 2A 1C 5B 4C 2B 3A 5C 4B 3B 4C 5B 5A 3A 4C 4B 5C 2C 1C 5B 2C 4B 3A 2C 1B 4B 3B 1B 4C 2B 3C 2B 1A 5A 3C 3B 2B 1A 5C 5C 2A 2C 5C 5A 1A 3C 4C 4B 4C 5A 2A 2A 2A 4C 1B 3A 2B 3A 4B 4B 2A 5B 2A 3A 5A 3A 3B 1B 4B 3B 3A 2C 2B 1B 3C 2C 5A 3A 3A

output:

NIE

result:

ok single line: 'NIE'

Subtask #6:

score: 1
Accepted

Test #53:

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

input:

100
2C 1A 1A 2A 4A 4B 5C 5B 5C 1B 5C 1C 3B 1B 2A 3B 1C 1A 5B 3A 3B 5B 2C 1B 2A 4B 5A 3A 3A 3A 5A 3B 5C 5C 5A 2C 2C 4A 4B 1A 3C 2B 4C 3C 1A 3A 3C 5C 3C 2C 4A 2B 2A 2A 3B 3C 4B 1C 3B 2B 2C 1A 2C 1B 5B 4B 5A 4A 4B 4C 2B 1C 5C 4C 1C 5A 5B 1C 3C 4B 3B 1B 4C 5B 3A 3A 5B 4C 3C 2B 5A 4C 1B 4A 2B 5A 4A 2A 4A...

output:

TAK

result:

ok single line: 'TAK'

Test #54:

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

input:

18
3C 5B 2B 5A 4A 3B 2A 2C 4B 1B 1C 1A 5C 5A 5C 5B 4C 3A

output:

TAK

result:

ok single line: 'TAK'

Test #55:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

19
4C 2C 2C 4B 5C 5B 5A 2B 3C 5A 3A 2B 3B 1A 5C 2A 5A 1C 4A

output:

NIE

result:

ok single line: 'NIE'

Test #56:

score: 1
Accepted
time: 1ms
memory: 6672kb

input:

95
2C 4B 4B 4A 5A 4B 3A 1C 5B 3B 5B 3A 5B 5C 1A 2C 3A 3B 2B 5B 3C 1A 1A 2B 5C 5B 4B 2C 2B 4B 2C 3B 5B 4A 3B 5A 5C 2B 1C 2A 3A 3A 4A 1A 3B 2B 2C 1A 1A 4A 3B 2C 3A 2C 5B 4A 3C 4A 5B 1C 5C 2A 4B 1C 3B 2B 4B 3B 2C 2A 3C 3B 2C 2B 2A 5A 1A 2B 1C 1A 1C 3A 5C 2C 1C 5B 4B 2A 1A 2B 4B 3B 4B 3C 5A

output:

NIE

result:

ok single line: 'NIE'

Test #57:

score: 1
Accepted
time: 1ms
memory: 6700kb

input:

96
4B 2B 1C 2C 5C 3A 5C 4C 4A 3B 3B 3B 1A 1A 1C 2C 3B 5C 3C 5C 3B 4B 3B 2B 3A 1B 2B 4C 3A 5C 2A 4C 2A 3C 2B 4A 3A 2C 2A 3C 4A 3A 5C 4C 2C 5A 4B 4B 2B 1A 4A 3C 1A 1A 5A 3C 4C 5A 3B 1B 2C 5C 4A 4A 4C 3A 5B 3A 4A 2C 4C 1C 4A 1C 5C 2C 2C 4C 3A 1A 1A 1A 4A 4A 1A 2A 3A 2A 1C 4A 1C 4C 2C 4B 2C 5C

output:

NIE

result:

ok single line: 'NIE'

Test #58:

score: 1
Accepted
time: 1ms
memory: 6712kb

input:

52
2A 2A 4A 1B 5C 5A 3B 2C 1A 2A 3A 1C 2B 2A 2A 3C 1B 5C 2C 1C 4A 5B 3C 4C 3B 5B 3C 4A 5C 3A 1C 2B 3C 3B 5A 5B 1A 4B 3B 4C 5B 4B 3B 1A 1C 4B 3C 2C 1C 5C 3B 1B

output:

TAK

result:

ok single line: 'TAK'

Test #59:

score: 1
Accepted
time: 1ms
memory: 6632kb

input:

35
4B 3A 1C 4C 1C 3A 3A 4A 2C 4C 4B 1C 3A 5A 3A 4A 2B 4A 4A 2A 3A 1A 4C 4B 2B 1B 1B 3A 4C 4C 3A 3A 5C 2A 2A

output:

NIE

result:

ok single line: 'NIE'

Test #60:

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

input:

63
5C 3B 5B 4C 1A 1A 5A 2B 4B 5C 2B 2C 5C 5C 3A 1B 3B 2B 2C 1A 4A 1A 3A 2C 2A 4A 3A 2A 5A 3C 4A 3C 1C 3A 2B 4B 5A 5C 4C 1A 2B 3A 3C 1C 1C 3C 3B 4C 4C 5C 3B 4C 1B 3C 3A 1C 2A 4A 2B 1A 5A 1B 5A

output:

NIE

result:

ok single line: 'NIE'

Test #61:

score: 1
Accepted
time: 1ms
memory: 6704kb

input:

32
2B 1B 3A 4A 1C 5B 2C 2B 1B 3B 4A 5B 2A 1B 5C 3C 1A 4B 5A 3B 2B 2A 5B 5C 2B 2A 4C 3C 2C 4B 2C 5A

output:

TAK

result:

ok single line: 'TAK'

Test #62:

score: 1
Accepted
time: 1ms
memory: 6628kb

input:

68
1A 4C 5A 3B 4A 1B 3B 1A 4A 3A 5B 4C 3A 4B 2A 5A 4C 4A 1A 4A 3C 2A 1B 3A 1A 5B 4B 4A 1B 2B 2B 5A 4C 2B 5B 1A 5C 2A 5C 2C 3C 2A 2C 5C 4C 1B 5C 4C 4C 1A 4A 3A 1B 3A 1B 4A 5B 4B 3B 5B 1A 2A 3B 2B 2C 4C 2C 3C

output:

NIE

result:

ok single line: 'NIE'

Subtask #7:

score: 1
Accepted

Test #63:

score: 1
Accepted
time: 1ms
memory: 6708kb

input:

59
3C 5C 2A 5B 3B 4B 5B 2A 5B 5C 4A 5B 3B 2A 4A 4A 4C 1B 1C 4A 1C 3C 4A 3B 2C 1B 3B 1B 5C 5C 2C 5A 4B 4C 1C 2B 4C 4A 2C 2A 1C 5C 2A 2B 1C 2C 5A 3B 2B 5B 3C 4C 1B 5A 5B 5C 5C 2A 4A

output:

NIE

result:

ok single line: 'NIE'

Test #64:

score: 1
Accepted
time: 1ms
memory: 6708kb

input:

87
1A 5B 3A 3A 1A 5C 5C 4C 3B 5C 1B 2A 2B 5B 5C 5A 4C 5B 1A 3B 4A 5A 2A 3C 4A 4B 4C 3C 2A 2C 5C 2B 5A 3B 3A 1B 4B 5B 5B 2C 3A 5B 1A 4C 3A 2A 3B 2C 2A 3A 5A 3A 4A 4C 5C 2A 5B 5A 2B 5B 2B 1A 2C 5A 2B 5B 4A 5A 3B 1B 2B 3C 3A 4A 3A 1A 4A 1B 2C 5C 3A 1A 5A 4A 1A 5A 3C

output:

NIE

result:

ok single line: 'NIE'

Test #65:

score: 1
Accepted
time: 1ms
memory: 6748kb

input:

91
2B 1A 4C 3C 1A 1A 4B 2C 5A 4C 2B 5C 4B 1C 5A 3B 2A 3B 1C 3C 3A 1A 2A 5C 5A 4C 1B 4A 2A 3C 5B 3B 4A 5A 1B 2C 5B 3B 3A 4B 2C 4A 5C 1B 3A 1C 2B 2B 2C 3A 1B 4C 4C 1B 2C 3C 4A 4B 3B 1C 1C 5A 1B 4A 3B 2B 1C 1B 2C 5C 4B 1A 3A 4C 3C 3B 1B 1C 2A 1B 1C 5C 3A 1B 3A 3B 1B 3A 2B 5C 2C

output:

TAK

result:

ok single line: 'TAK'

Test #66:

score: 1
Accepted
time: 1ms
memory: 6812kb

input:

7
2C 4C 2B 2C 4A 2B 2C

output:

NIE

result:

ok single line: 'NIE'

Test #67:

score: 1
Accepted
time: 1ms
memory: 6780kb

input:

72
5B 2C 1B 5A 1B 1A 5B 4C 5C 3B 5B 3C 5C 3C 2C 1B 3C 4C 3A 3A 4A 4A 3A 1C 5A 5C 1A 4C 2C 1A 2C 1A 3C 4C 1B 1B 5C 5C 5B 5B 1A 1A 5B 1B 3A 5C 4B 4C 2C 4A 5B 4A 2A 5B 4A 2A 4A 4B 3A 3B 4A 3B 1B 2A 4C 5B 4B 4A 1A 5A 1C 5A

output:

NIE

result:

ok single line: 'NIE'

Test #68:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

23
3A 1B 4B 5C 5B 1B 3C 1A 2C 2A 5C 3A 2B 5B 4B 1A 4C 1C 2A 1C 5A 5A 5A

output:

NIE

result:

ok single line: 'NIE'

Test #69:

score: 1
Accepted
time: 1ms
memory: 6812kb

input:

90
1B 2C 5A 1A 1A 4B 2C 2B 5C 5B 4C 2B 5A 5B 4A 5A 4B 2A 1A 5B 5C 4C 1A 4A 4B 2C 1B 4A 1A 1A 4A 1B 2A 4B 1C 3A 1C 3B 2B 1C 2C 1B 1B 5C 3B 3B 2C 5A 5B 1A 4A 1B 2A 1C 2C 3B 3C 2C 2B 5B 4C 1B 5A 5A 3C 5A 2A 1A 1A 3A 5B 4C 1B 4B 5A 5B 1A 5B 1B 4A 5A 3A 2A 1C 4A 4B 4C 3C 2C 2A

output:

TAK

result:

ok single line: 'TAK'

Test #70:

score: 1
Accepted
time: 1ms
memory: 6744kb

input:

94
1B 3C 1C 4A 2B 1C 1A 4A 2A 1B 1B 1C 4A 4B 2A 4C 2C 1C 5B 4A 4C 5C 4C 5B 4A 1A 1C 1A 2B 3C 3C 4C 3B 3A 1B 1B 2A 2C 3B 5B 4A 3B 2C 4B 2B 1C 1B 5C 4A 1B 3A 1A 4C 4B 2A 3C 1C 1B 5B 2C 5C 1A 5C 2B 5C 2C 1C 5C 1C 3B 3B 5B 3A 2B 1A 3A 3C 5B 1C 4A 3A 1C 1A 4B 2A 1C 1C 2C 1B 2A 3C 3B 3B 4C

output:

NIE

result:

ok single line: 'NIE'

Test #71:

score: 1
Accepted
time: 1ms
memory: 6692kb

input:

87
3A 3B 5A 4A 1A 1B 1B 5C 4C 1C 3A 4B 3A 3B 3A 5B 5A 2B 5A 4C 3B 1A 2A 3A 5A 2A 3B 2C 3B 5A 1B 5C 2A 2B 3C 4C 3C 5C 4C 1B 5A 2C 1C 4B 1B 4C 4C 2B 3C 5B 4A 3B 5A 1B 5C 4B 1B 4B 5C 2C 4C 4B 4C 1C 2C 4B 3B 5C 2B 2A 1A 5B 2C 5B 3B 5B 3A 3B 3C 2C 2A 5B 1C 3C 2A 4A 1A

output:

TAK

result:

ok single line: 'TAK'

Test #72:

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

input:

65
4C 1C 4C 3A 5C 3A 5C 3B 4B 1C 2C 4A 2B 1C 3B 4C 4A 2A 5A 5C 5C 5C 3B 5C 5A 2C 3C 4C 2C 5B 2B 2A 3A 5B 3B 3C 3C 4C 2C 4C 3C 5A 4B 5A 3C 5A 3B 2A 3A 5B 5B 1C 3C 4A 1C 3B 5A 3A 2B 4C 4A 4A 4B 4C 2C

output:

NIE

result:

ok single line: 'NIE'

Subtask #8:

score: 1
Accepted

Test #73:

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

input:

72
2B 5B 4B 5A 5C 4C 5C 5A 3B 5B 3A 3B 2B 2B 5A 5B 5C 2C 2A 3B 4C 4B 4C 4A 2A 4A 5C 2A 2B 2B 4B 4C 3A 5B 3A 2B 2C 1C 3C 2A 3C 3A 3C 2B 2C 4A 3C 5A 5C 3A 5C 2C 4B 5B 3B 3A 4A 4B 5A 2C 4B 5A 2B 2B 1A 2B 4A 1C 5B 1C 2B 1B

output:

TAK

result:

ok single line: 'TAK'

Test #74:

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

input:

85
1A 2A 4B 1A 1A 1C 4B 3A 1B 1C 1A 3B 1B 4B 3B 5C 3B 4C 3B 2B 2B 5A 1A 1C 4C 5B 4C 5C 2C 1B 1C 4B 1C 2A 3B 4C 5C 5A 1B 1A 3A 1A 4C 3B 1A 2A 3A 5C 3B 3A 3A 5C 1A 1C 1A 4A 2B 1B 2A 1A 2A 2B 5C 3B 5B 3A 4B 4B 3B 5C 1B 5C 2C 4B 5C 2C 4B 5C 5B 2C 2C 1C 1B 5B 5B

output:

NIE

result:

ok single line: 'NIE'

Test #75:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

51
4C 2C 5B 1A 5C 3C 3C 2A 5C 4B 2B 5B 5C 4A 5C 3C 2C 5A 1B 2C 2C 5A 4A 2B 4B 5C 4B 5B 1C 4C 1C 5A 3B 4A 2C 5B 5B 4A 2A 2C 5B 2B 1B 1C 3A 4B 1C 2A 2A 1C 3B

output:

TAK

result:

ok single line: 'TAK'

Test #76:

score: 1
Accepted
time: 1ms
memory: 6752kb

input:

99
2B 5C 2C 1B 2B 4C 1C 2A 4C 5A 4C 3A 3C 5B 3A 4B 1C 4B 1B 2C 1B 1B 1C 3A 4B 4B 3C 5C 3C 2A 2B 2A 2A 3A 5C 2B 2A 5B 3A 5B 3B 2B 3B 5A 5C 1C 1A 3C 5C 2C 4C 3A 1A 2C 5C 5B 2A 4C 3B 1B 3C 2A 1C 3B 1C 1A 5C 5C 1A 3B 3C 5A 1A 5A 5B 1A 1B 2A 5A 4C 2C 3C 5A 3C 5C 1A 2C 5B 2A 4B 3A 2C 1A 5A 3C 5A 4C 2A 2A

output:

NIE

result:

ok single line: 'NIE'

Test #77:

score: 1
Accepted
time: 1ms
memory: 6704kb

input:

44
2B 1B 3A 3A 1A 1A 5C 5C 5B 1C 4A 1B 2C 2B 3C 5A 5C 2A 5B 3B 4A 5B 2C 5B 4B 2A 4B 2B 1C 3B 4C 3B 3B 1A 5C 3A 5A 3A 1C 2A 2A 2C 1C 1C

output:

TAK

result:

ok single line: 'TAK'

Test #78:

score: 1
Accepted
time: 1ms
memory: 6820kb

input:

58
5A 1B 1A 2A 3C 5A 5A 5C 1B 2A 5C 3B 3A 5C 1A 4B 1C 2B 1C 2B 3A 2B 5B 4C 4B 3A 5C 2A 3B 4C 5B 4A 5A 3A 4B 2A 3B 5A 3C 5B 4C 1A 5B 5B 3A 5A 5A 2A 2B 4C 4C 4A 5C 1A 1B 4A 5A 5A

output:

NIE

result:

ok single line: 'NIE'

Test #79:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

24
5C 1C 4B 3C 4A 2B 1B 5A 2B 2B 1A 5B 4C 1C 2A 4C 2C 3C 3B 5B 3A 5A 5C 5C

output:

TAK

result:

ok single line: 'TAK'

Test #80:

score: 1
Accepted
time: 1ms
memory: 6624kb

input:

72
4C 1A 3A 2B 3C 2A 2B 2A 1B 4B 3B 2B 1B 3B 4A 2C 2B 2B 3C 2A 4B 5B 4B 2A 4A 1C 1C 2B 4A 4C 2A 1A 4B 2C 1C 4B 2C 2B 4A 2A 4C 3B 5B 4C 1C 1C 2A 5B 1C 3B 1B 1B 2C 4C 5B 5A 1B 3C 5B 2A 5B 5B 4C 3A 3C 5C 4C 5B 4C 1C 2C 3B

output:

NIE

result:

ok single line: 'NIE'

Test #81:

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

input:

92
3C 4B 1B 1A 2B 4C 3B 3C 2B 3C 2C 3A 3A 4C 4B 1A 3C 5C 2C 2B 4B 1B 3C 4B 3A 4C 5B 2C 1C 4A 3C 4B 5C 4A 3A 3A 3B 3A 3C 4A 2A 1A 2A 2B 1A 2A 4C 1C 4C 2A 3B 4A 1C 3A 1A 3C 2B 3B 3A 3C 5A 3B 4B 2B 5C 1B 3B 1A 2C 4A 3A 4B 1C 2A 1B 3C 1C 5C 4B 4A 2A 2C 2B 3B 1B 5C 2A 1C 3A 4C 4B 2C

output:

NIE

result:

ok single line: 'NIE'

Test #82:

score: 1
Accepted
time: 1ms
memory: 6820kb

input:

49
4A 1B 5A 1C 5A 2A 5A 4A 2C 5A 1C 5C 5C 4C 1B 4B 5B 5B 5A 1C 4C 1A 5A 5C 5B 2A 5A 4B 1A 2B 2B 1C 3A 4B 3B 3A 2A 4A 4A 2C 5B 5A 5C 2B 5A 3B 2B 1A 2C

output:

NIE

result:

ok single line: 'NIE'

Subtask #9:

score: 1
Accepted

Test #83:

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

input:

95
3B 5C 1B 2A 4C 1A 3C 2A 4A 5A 1B 4C 1A 3C 5A 3B 5A 3A 5B 5B 2C 5B 3B 5C 2B 1A 1C 2C 1A 4C 5B 5C 2A 2B 1B 4C 2A 1A 1B 5A 2B 4C 3A 3B 3B 5C 3C 3A 3B 4A 4B 5A 1B 2A 1C 4C 1B 1A 4B 2B 5B 3A 5C 4B 1C 3C 4A 2B 3A 1C 4B 5B 3C 5B 5A 3C 5A 3A 5C 3C 1A 4C 2B 4A 1C 5C 4A 4C 3C 2C 2B 1B 3B 4B 2C

output:

TAK

result:

ok single line: 'TAK'

Test #84:

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

input:

44
4C 2C 3B 4B 5B 5C 4A 1A 2B 5B 1B 3A 5B 4B 3B 5C 3A 1C 5B 5C 5B 1C 5B 1B 2B 1A 1C 1A 4C 1C 3C 3A 5A 3A 1B 1A 2A 3B 5A 3C 5A 5A 3B 2A

output:

TAK

result:

ok single line: 'TAK'

Test #85:

score: 1
Accepted
time: 1ms
memory: 6692kb

input:

60
4C 5A 1A 3C 2A 4B 4B 2C 2B 2B 5A 5C 3C 5A 3C 3C 3C 5A 5A 2A 4C 3A 3A 3B 4B 2A 4C 2A 4C 5C 5B 5B 5C 4C 3A 2A 4C 2A 1C 1C 3C 5B 2B 2A 1C 2C 5C 3C 4B 4B 3A 3B 2B 5C 3A 1C 5A 5B 1A 1A

output:

NIE

result:

ok single line: 'NIE'

Test #86:

score: 1
Accepted
time: 1ms
memory: 6704kb

input:

27
4A 3C 3C 1A 2A 4C 5B 5B 5A 1A 3C 4A 3B 5A 2B 3A 5C 5B 1B 1C 3C 3A 4C 2C 4B 5C 1C

output:

TAK

result:

ok single line: 'TAK'

Test #87:

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

input:

86
1C 4C 4A 5C 1C 5A 4C 3B 3C 4B 2A 2C 2A 4C 5A 2A 2A 5C 2B 5B 4A 5B 4C 3A 1A 5C 3B 2C 4A 4B 1A 5C 1C 3C 1A 1A 5C 4C 5C 5B 5C 3C 4A 3B 5A 3C 5B 4A 5C 4C 5B 2A 3C 4B 1C 2B 4C 5A 1C 3B 3C 1C 3A 3B 3A 2C 4B 4A 5A 2C 3C 2A 1A 1A 4C 2C 1C 3C 5B 4A 5A 3B 2C 1C 5A 5B

output:

NIE

result:

ok single line: 'NIE'

Test #88:

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

input:

92
4B 4B 2B 1A 4B 1C 5C 5B 4A 5B 2A 4A 3A 1C 3B 2B 5B 4C 4B 4C 2B 1C 3B 4B 5A 5B 1C 5B 3A 4B 4A 5B 4C 5B 2C 3B 4B 5C 5B 4B 2C 1B 2B 5B 3A 4C 5C 2C 5B 4B 2A 4A 2C 1C 5A 5C 4A 4A 5C 4C 4A 3A 1A 4B 1B 1A 1A 3A 5B 4A 4A 5A 3A 2C 4A 5B 1C 5A 4B 4A 3C 1C 2A 5B 3A 1B 4C 3A 3A 4A 3A 5A

output:

TAK

result:

ok single line: 'TAK'

Test #89:

score: 1
Accepted
time: 1ms
memory: 6688kb

input:

99
5A 2A 4A 5A 4B 3A 3C 5B 2C 2B 1C 1C 1B 3A 4B 2C 3A 4B 5B 1C 1C 2C 5B 2A 2A 4C 5B 4B 1B 3C 1B 5A 1B 5A 3C 4B 3A 2B 1C 1B 5A 3C 2C 5C 1A 1A 1C 3C 5C 4B 4B 2A 5A 5B 4B 2C 1C 4B 3C 2C 5A 2C 2B 4B 5C 3C 4C 4A 5C 5C 4C 5B 1C 3C 1A 5C 3A 4C 4B 1A 3C 1B 2A 4C 3C 1A 3C 5A 1A 4C 5B 5C 2A 4C 1A 2B 3C 3C 4A

output:

NIE

result:

ok single line: 'NIE'

Test #90:

score: 1
Accepted
time: 1ms
memory: 6732kb

input:

49
3C 1B 4A 1B 1C 1A 3A 2B 5A 3A 4A 2B 3A 4B 2B 3B 3C 2B 2B 2B 1B 2C 3B 5C 4B 1C 4C 2C 2B 3A 4A 3A 3B 3A 4A 1C 1C 1B 3C 2B 4C 1A 2A 5B 2A 2A 2B 4B 4B

output:

NIE

result:

ok single line: 'NIE'

Test #91:

score: 1
Accepted
time: 1ms
memory: 6792kb

input:

25
2B 1A 3A 5C 1B 5B 2C 4A 3B 3B 2A 1C 4C 2C 3B 5A 5A 5B 3C 1A 5C 4B 1C 5B 4B

output:

TAK

result:

ok single line: 'TAK'

Test #92:

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

input:

100
4A 3B 5A 2B 4A 2C 3A 5A 3B 4B 5C 4B 2C 5A 2C 3B 2A 3B 3C 4B 1A 1C 2B 4B 5A 5B 5A 2C 2B 2B 5A 3B 2B 1C 2C 2C 5B 3C 2A 1A 4C 4B 2C 5B 4B 1C 4A 5C 5C 2B 3B 4A 5C 3C 2A 1A 2B 5C 4A 1A 5C 2B 4C 1C 4A 3C 5A 5B 1B 4B 4C 1A 3C 1A 1C 5B 3C 1B 5B 4A 2C 1B 2C 2C 2C 5C 5A 1B 1A 1A 5B 5A 1B 1B 2B 5B 2A 5A 5B...

output:

TAK

result:

ok single line: 'TAK'

Subtask #10:

score: 1
Accepted