t = readline().to_i for u in 1..t do n = readline().to_i if n % 2 == 0 puts n / 2 * (n - 2) else puts 0 end end