1 var
2 n,x:longint;
3 function gcd(a,b:longint):longint;
4 begin
5 if a mod b=0 then exit(b);
6 exit(gcd(b,a mod b));
7 end;
8
9 procedure main;
10 var
11 num:int64;
12 i:longint;
13 begin
14 for i:=x div 2+1 to x-1 do
15 if gcd(x-i,i)=1 then
16 begin
17 num:=(x-i);
18 writeln(num*i);
19 exit;
20 end;
21 writeln(x div 2);
22 end;
23
24 begin
25 readln(n);
26 while n>0 do
27 begin
28 readln(x);
29 if x mod 2=1 then writeln(x div 2*(x div 2+1))
30 else main;
31 dec(n);
32 end;
33 end.