QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#763641#993. 100 Boxes Per Hour...GeniusWA 28ms4036kbC++142.7kb2024-11-19 21:23:362024-11-19 21:23:37

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 3928kb

input:

100
3 33 64
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
84 8 8
B
B
B
R
R
R
R
R
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
EMPTY 2
PLACE 2
PLAC...

result:

ok OK

Test #2:

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

input:

100
14 28 58
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
G
G
57 29 14
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
...

output:

PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISC...

result:

ok OK

Test #3:

score: 0
Accepted
time: 19ms
memory: 3988kb

input:

100
31 17 52
G
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
83 6 11
G
G
G
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #4:

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

input:

100
0 34 66
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
14 84 2
R
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #5:

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

input:

100
20 77 3
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
0 43 57
B
B
B
G
B
B
B
B
B
B
G
B
B
B
B
B
B
G
G
G
B
B
G
B
B
G
G
G
B
G
B
G
G
B
G
B
G
B
B
G
...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #6:

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

input:

100
14 68 18
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
R
R
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
66 0 34
G
G
B
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #7:

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

input:

100
2 93 5
B
B
B
R
R
G
G
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
31 53 16
G
G
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
R
G
G
R
G
...

output:

PLACE 2
PLACE 2
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #8:

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

input:

100
6 14 80
B
B
B
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
2 5 93
G
B
R
R
B
R
G
R
B
R
R
B
R
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

PLACE 2
PLACE 2
PLACE 2
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #9:

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

input:

100
42 58 0
R
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
11 30 59
R
G
G
B
G
B
R
G
B
G
B
G
B
G
G
B
G
G
G
G
G
G
B
G
G
B
G
R
G
R
B
G
G
G
G
B
B
G
R
G...

output:

DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #10:

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

input:

100
57 22 21
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
B
R
B
B
B
R
B
B
B
R
B
B
B
R
B
B
B
R
R
22 42 36
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #11:

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

input:

100
69 27 4
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
19 61 20
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G...

output:

PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #12:

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

input:

100
54 31 15
B
R
B
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
R
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
69 6 25
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
B
R
R
B
R
R
B...

output:

PLACE 2
DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #13:

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

input:

100
66 1 33
B
B
B
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
34 66 0
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
...

output:

PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #14:

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

input:

100
53 21 26
R
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
30 36 34
R
G
G
B
B
B
G
B
G
G
B
R
G
B
R
G
R
R
B
G
R
B
B
G
G
G
B
G
B
R
B
R
B
G
R
B
R
B
R
...

output:

DISCARD
PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #15:

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

input:

100
0 8 92
G
G
G
R
R
R
R
R
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
52 34 14
R
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
...

output:

PLACE 1
PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #16:

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

input:

100
30 22 48
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
G
R
G
R
G
G
R
G
R
R
54 15 31
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #17:

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

input:

100
31 17 52
B
B
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
B
B
B
B
B
R
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
20 20 60
G
G
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

PLACE 2
PLACE 2
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #18:

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

input:

100
58 14 28
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
B
B
15 31 54
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #19:

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

input:

100
17 39 44
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
30 53 17
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

output:

DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #20:

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

input:

100
74 23 3
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
22 13 65
B
B
B
R
B
B
G
B
G
B
B
R
R
G
B
B
R
B
G
B
B
B
B
G
R
G
B
B
B
R
G
B
B
G
B
G
B
G
G
B...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLAC...

result:

ok OK

Test #21:

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

input:

100
66 0 34
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
31 52 17
G
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #22:

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

input:

100
19 64 17
B
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
4 6 90
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLAC...

result:

ok OK

Test #23:

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

input:

100
36 60 4
G
B
B
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
R
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
20 77 3
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
...

output:

PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #24:

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

input:

100
58 26 16
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
B
G
G
B
G
G
G
G
G
G
G
G
47 53 0
G
B
B
G
B
B
G
B
B
B
B
B
B
G
B
G
G
G
G
G
B
B
B
B
B
G
G
B
G
G
G
B
B
B
G
B
G
B
G
B...

output:

DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #25:

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

input:

100
51 18 31
B
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
R
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
60 20 20
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
...

output:

PLACE 2
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #26:

score: 0
Accepted
time: 22ms
memory: 3852kb

input:

100
35 56 9
B
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
R
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
0 0 100
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

PLACE 2
DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #27:

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

input:

100
52 17 31
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
B
R
R
R
R
R
10 8 82
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
G
B
G...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #28:

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

input:

100
17 52 31
R
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
32 1 67
G
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G...

output:

DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #29:

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

input:

100
14 58 28
G
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
79 20 1
G
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R...

output:

PLACE 1
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #30:

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

input:

100
19 56 25
G
R
G
B
G
G
G
R
G
B
B
G
G
B
B
R
G
R
G
G
G
G
G
B
R
G
B
B
B
B
G
B
G
G
G
G
B
R
R
G
G
B
B
R
R
R
G
G
R
G
G
G
R
B
G
G
G
G
G
R
G
R
G
R
G
B
G
G
G
G
G
G
G
R
R
G
G
G
G
R
R
G
R
R
R
G
G
G
G
G
G
G
G
R
R
B
B
R
B
G
58 28 14
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
...

output:

PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
DISC...

result:

ok OK

Test #31:

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

input:

100
60 20 20
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
B
B
G
B
B
B
G
B
B
B
G
B
B
B
G
B
B
B
G
B
B
B
G
B
B
B
51 32 17
B
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #32:

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

input:

100
31 18 51
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
B
B
B
B
B
41 15 44
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #33:

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

input:

100
28 58 14
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
R
B
B
20 20 60
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
...

output:

PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #34:

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

input:

100
13 29 58
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
15 31 54
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #35:

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

input:

100
9 33 58
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
G
G
G
54 31 15
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #36:

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

input:

100
53 31 16
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
19 20 61
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #37:

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

input:

100
52 11 37
G
G
G
G
G
R
R
G
R
G
R
G
R
R
G
B
R
B
G
G
R
B
G
R
G
R
G
R
R
G
R
R
G
R
G
R
G
G
R
G
R
B
B
G
G
G
G
G
G
R
R
R
R
B
G
R
B
G
R
R
R
B
R
R
G
G
G
G
G
R
G
B
G
R
R
R
G
G
G
G
G
B
R
G
R
G
R
R
G
R
G
G
B
G
G
G
G
G
G
G
73 18 9
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 1
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
DISCARD
PLACE 1
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 1
DISCARD
PLACE 1
PLAC...

result:

ok OK

Test #38:

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

input:

100
58 13 29
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
21 57 22
R
B
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #39:

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

input:

100
11 27 62
B
G
B
G
G
B
B
G
B
G
G
G
G
G
B
G
G
G
G
G
R
G
G
G
B
B
G
B
G
B
R
B
B
G
G
G
B
B
B
R
G
G
G
G
G
G
R
R
G
R
G
G
G
B
G
G
B
G
G
G
G
G
G
G
B
G
G
G
R
G
B
G
G
G
G
B
R
G
G
B
B
G
B
G
R
B
G
G
R
G
G
G
B
B
G
G
G
G
B
R
9 53 38
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B...

output:

PLACE 2
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLAC...

result:

ok OK

Test #40:

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

input:

100
17 82 1
G
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
17 53 30
G
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

PLACE 1
PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLAC...

result:

ok OK

Test #41:

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

input:

100
29 13 58
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
17 31 52
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #42:

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

input:

100
35 36 29
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
R
G
R
G
R
R
G
R
G
R
R
G
R
G
R
R
G
R
G
R
R
G
R
G
R
R
G
G
G
G
G
G
16 31 53
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #43:

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

input:

100
21 22 57
B
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
R
B
B
B
B
B
28 32 40
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
...

output:

PLACE 2
DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #44:

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

input:

100
35 56 9
R
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
R
B
B
B
21 54 25
R
R
R
G
R
R
G
R
G
G
R
G
R
R
R
B
R
G
G
R
G
R
R
R
G
G
B
B
R
B
R
R
B
G
G
R
R
G
B
B...

output:

DISCARD
DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #45:

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

input:

100
14 28 58
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
B
B
9 35 56
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #46:

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

input:

100
28 1 71
G
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
11 66 23
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #47:

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

input:

100
59 16 25
R
R
R
R
R
B
G
B
B
B
B
B
R
R
R
G
R
R
R
R
R
R
R
G
B
R
R
R
R
R
R
B
R
R
R
R
G
R
B
R
R
B
R
B
B
B
G
R
G
R
R
B
R
R
R
R
G
G
R
B
B
R
R
R
G
G
B
G
B
B
R
R
R
B
G
B
R
R
G
R
R
G
B
B
R
B
G
R
G
R
R
R
R
B
R
R
R
R
R
R
30 20 50
R
B
B
B
B
G
B
R
G
G
R
B
G
G
B
G
R
R
R
R
G
B
R
R
G
R
R
B
B
R
R
R
B
R
R
R
B
R
G
...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
DISCARD
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 2
EMPTY 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISC...

result:

ok OK

Test #48:

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

input:

100
9 25 66
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
11 31 58
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B...

output:

PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISC...

result:

ok OK

Test #49:

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

input:

100
35 9 56
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
B
B
B
B
B
B
7 92 1
B
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G...

output:

DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #50:

score: 0
Accepted
time: 28ms
memory: 3928kb

input:

100
19 61 20
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
R
R
G
R
R
R
G
R
R
R
G
R
R
R
G
R
R
R
G
R
R
R
R
R
R
R
56 30 14
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #51:

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

input:

100
22 21 57
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
B
R
B
B
B
R
B
B
B
R
B
B
B
R
B
B
B
R
R
19 61 20
B
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #52:

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

input:

100
60 20 20
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
14 58 28
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
...

output:

PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #53:

score: 0
Accepted
time: 23ms
memory: 3932kb

input:

100
64 1 35
R
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
B
B
43 31 26
R
B
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #54:

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

input:

100
52 17 31
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
B
G
G
G
G
G
67 1 32
R
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #55:

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

input:

100
22 21 57
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
R
B
R
R
R
B
R
R
R
B
R
R
R
B
R
R
R
B
B
20 20 60
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #56:

score: 0
Accepted
time: 20ms
memory: 3984kb

input:

100
1 1 98
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
57 29 14
G
B
G
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
...

output:

PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #57:

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

input:

100
35 9 56
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
G
G
B
B
B
B
B
B
B
14 18 68
G
G
G
G
G
G
G
G
R
R
G
G
G
R
G
G
G
G
B
R
B
G
G
B
G
B
G
G
G
G
G
G
G
B
G
B
B
B
R
G...

output:

DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
PLACE 1
DISCARD
PLACE 2
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #58:

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

input:

100
11 27 62
B
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
B
B
B
B
R
B
B
B
B
B
B
74 24 2
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #59:

score: 0
Accepted
time: 22ms
memory: 3852kb

input:

100
33 13 54
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
R
R
R
R
R
R
31 54 15
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
...

output:

PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 2
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 2
DISCARD
PLACE 1
PLACE 1
DISC...

result:

ok OK

Test #60:

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

input:

100
32 10 58
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
11 84 5
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
B
G
R
G
G
B
R
G
G
R
G
G
R
G
G
R
G
G
R
G
G
G
G...

output:

DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #61:

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

input:

100
92 0 8
B
B
B
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
B
B
51 18 31
G
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
...

output:

PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #62:

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

input:

100
14 28 58
R
B
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
22 59 19
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

DISCARD
PLACE 2
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #63:

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

input:

100
52 31 17
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
B
G
G
G
G
G
2 1 97
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

output:

DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
PLACE 2
DISCARD
PLACE 1
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #64:

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

input:

100
18 31 51
R
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
35 56 9
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G...

output:

DISCARD
PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #65:

score: 0
Accepted
time: 26ms
memory: 3992kb

input:

100
66 33 1
G
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
88 8 4
R
G
B
B
G
B
R
B
G
B
B
R
G
B
B
G
B
R
B
G
B
B
G
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B...

output:

PLACE 1
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #66:

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

input:

100
53 31 16
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
G
R
R
G
R
R
G
R
G
G
G
G
18 51 31
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #67:

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

input:

100
3 83 14
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
98 0 2
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R...

output:

DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #68:

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

input:

100
16 83 1
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
B
30 17 53
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G...

output:

PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #69:

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

input:

100
41 39 20
G
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
25 57 18
G
G
R
G
G
B
R
B
B
R
B
B
R
B
R
B
B
B
B
G
B
B
B
B
B
B
G
R
G
G
G
B
G
R
B
G
B
B
R
...

output:

PLACE 1
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISC...

result:

ok OK

Test #70:

score: 0
Accepted
time: 21ms
memory: 4000kb

input:

100
14 29 57
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
G
R
B
B
R
B
G
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
B
R
B
18 51 31
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISCARD
PLACE 2
PLACE 1
PLACE 2
DISCARD
PLACE 2
PLACE 2
PLACE 1
DISCARD
PLACE 2
PLACE 2
DISC...

result:

ok OK

Test #71:

score: 0
Accepted
time: 20ms
memory: 3988kb

input:

100
34 66 0
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
B
B
G
13 29 58
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G...

output:

PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLACE 2
PLACE 2
PLACE 1
PLAC...

result:

ok OK

Test #72:

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

input:

100
17 52 31
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
B
R
G
R
R
B
G
R
R
G
R
R
G
G
G
G
G
20 20 60
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 2
PLACE 1
DISCARD
DISCARD
PLAC...

result:

ok OK

Test #73:

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

input:

100
88 2 10
B
G
R
R
G
R
B
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
84 1 15
B
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
G
R
R
...

output:

PLACE 2
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
PLACE 1
DISCARD
DISCARD
DISCARD
EMPTY 2
PLACE 2
PLACE 2
PLACE 2
PLAC...

result:

ok OK

Test #74:

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

input:

100
58 29 13
G
B
G
R
R
R
R
R
R
R
R
R
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
R
B
B
B
B
B
B
B
B
B
B
B
B
B
66 33 1
B
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G...

output:

PLACE 1
PLACE 2
PLACE 1
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #75:

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

input:

100
54 2 44
G
G
B
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
R
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
G
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
58 28 14
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R
G
B
G
G
R
B
G
G
B
G
R...

output:

PLACE 1
PLACE 1
PLACE 2
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
DISCARD
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLACE 1
PLAC...

result:

ok OK

Test #76:

score: -100
Wrong Answer
time: 13ms
memory: 3996kb

input:

100
13 29 58
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
B
R
R
21 57 22
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
G
R
B
R
R
G
B
R
R
B
R
...

output:

PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLACE 2
DISCARD
PLACE 1
DISCARD
PLACE 2
DISCARD
DISCARD
PLACE 1
PLACE 2
DISCARD
DISCARD
PLAC...

result:

wrong answer Bad score