Ticket 2862
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
3 1
7 8 3 
9 1 6 
4 5 2 
Expected Output
MGG
MGG
GGG
Generator Parameters
--n_cap 2000 --n_high 10 --n_low 1