const fi='dulieu.txt';
fo='ketqua.txt';
var n,i:integer;
a:array[1..100]of integer;
f1,f2:text;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,n);
for i:=1 to n do
read(f1,a[i]);
for i:=1 to n do
if a[i] mod 2<>0 then write(f2,a[i]:4);
close(f1);
close(f2);
end.