def cross3(a, b, c): return (b[0]-a[0])*(c[1]-a[1]) - (b[1]-a[1])*(c[0]-a[0]) # ps = [(x, y), ...]: ソートされた座標list def convex_hull(ps): qs = [] N = len(ps) for p in ps: # 一直線上で高々2点にする場合は ">=" にする while len(qs) > 1 and cross3(qs[-1], qs[-2], p) >= 0: qs.pop() qs.append(p) t = len(qs) for i in range(N-2, -1, -1): p = ps[i] while len(qs) > t and cross3(qs[-1], qs[-2], p) >= 0: qs.pop() qs.append(p) return qs inf = 2*10**9 from math import gcd for _ in range(int(input())): n = int(input()) XY = [list(map(int, input().split())) for _ in range(n)] D = {(x, y): i for i, (x, y) in enumerate(XY)} XY.sort() XY_ = convex_hull(XY)[:-1] Ans = [-1 for _ in range(n)] for i in range(len(XY_)): x0, y0 = XY_[i-1] x1, y1 = XY_[i] x2, y2 = XY_[(i+1)%len(XY_)] Ans[D[(x1, y1)]] = (2*x1-x0-x2, 2*y1-y0-y2) for ans in Ans: if ans == -1: print("No") else: print(*ans)