import math, strutils let t = stdin.readLine.parseInt for _ in 0..