var n,i,k,j,s,min,s1:longint;
a:array [1..100] of integer;
begin
write('nhap n pt');readln(n); min:=100000;
for i:=1 to n do
begin
write('pt thu',i);readln(a[i]);
if a[i]<min then a[i]:=min;
if a[i] mod =0 then s:=s+a[i]
else s1:=s1+a[i];
end;
write(minx);
write('tong chan',s);
write('tong le',s1);
readln
end.