SP8945 GRIDPNTS - Grid points (speed variation)

Description

There's a Cartesian lattice with 0

Input Format

In the first line the number T (T

Output Format

For each test case the space-separated x2 and y2.