import sys input = sys.stdin.readline for _ in range(int(input())): n = int(input()) if n % 2 == 1: print(0) else: print((n // 2) * (n - 2))