uses crt;
var a:array[1..50]of integer;
t,i,n:integer;
begin
clrscr;
repeat
write('Nhap n='); readln(n);
until (0<n) and (n<=50);
for i:=1 to n do
begin
repeat
write('A[',i,']='); readln(a[i]);
until (0<=a[i]) and (a[i]<=32767);
end;
writeln('Day A=');
for i:=1 to n do
write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
if a[i] mod 2=1 then t:=t+a[i];
writeln('Tong cac so le la: ',t);
writeln('Cac so le trong day A la: ');
for i:=1 to n do
if a[i] mod 2=1 then write(a[i]:4);
readln;
end.