Program HOC24;
var i,n: integer;
t1,t2: longint;
begin
write('Nhap so phan tu cua day: '); readln(a[i]);
for i:=1 to n do
begin
write('Nhap phan tu thu ',i,': '); readln(a[i]);
end;
t1:=0; t2:=0;
for i:=1 to n do if a[i] mod 2=0 then t1:=t1+a[i] else t2:=t2+a[i];
writeln('Tong cac so chan la: ',t1);
write('Tong cac so le la: ',t2);
readln
end.