procedure Second();
var
a: byte;
b, c: single;
begin
c := 1;
for a := 1 to 10 do
if (a mod 2 = 0) then b += a
else c *= a;
writeln(b, System.Environment.NewLine, c);
end;
procedure Third();
var
a: byte;
b: longInt;
begin
for a := 1 to 10 do
b += sqr(a);
writeln(b);
end;
begin
Second;
Writeln();
Third;
end.