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