program zd;
var mas:array [1..15] of integer;
i:integer;
begin
randomize;
for i:=1 to 15 do begin
mas[i]:=random (20)-10;
end;
for i:=1 to 15 do begin
if mas[i] mod 2 = 0 then mas[i]:=mas[i] div 2;
if mas[i] mod 2 = 1 then mas[i]:=mas[i]*3;
end;
for i:=1 to 15 do begin
writeln ('',mas[i]);
end;
end.