t = int(input()) for i in range(t): n = int(input()) if n % 2 != 0: print(0) else: print((n // 2) * (n - 2))