program BaiTap;
var
arr: array[1..200] of integer;
n, i, sumOfOdd, productOfEven: integer;
begin
writeln('Nhap so phan tu: ');
readln(n);
sumOfOdd := 0;
productOfEven := 1;
for i := 1 to n do
begin
writeln('Nhap phan tu thu ', i, ': ');
readln(arr[i]);
if arr[i] mod 2 = 1 then
sumOfOdd := sumOfOdd + arr[i]
else if arr[i] mod 2 = 0 then
productOfEven := productOfEven * arr[i];
end;
writeln('Tong cac so le: ', sumOfOdd);
writeln('Tich cac so chan: ', productOfEven);
readln;
end.