HOW TO SOLVE THIS
# cook your dish here
for t in range(X):
Problem Link: WATERCONS Problem - CodeChef
X should be >= 2000 and also print \n after each test case to leave line.