Ticket 2734
Problem 1658 -e
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
4 2
2 14 4 3 
13 9 5 10 
11 1 6 8 
12 16 15 7 
Expected Output
GGGG
GGGG
GMGG
MMMG
Generator Parameters
--n_cap 2000 --n_high 9 --n_low 3