Var
P,i,S:integer;
Begin
P:=1;
For i:= 2 to 10 do
P:=P*i;
WriteLn('1: ',P);
P:=1;
S:=0;
For i:= 1 to 10 do
if i mod 2 = 0 then S:=S+i
else P:=P*i;
WriteLn('2:');
WriteLn('S = ',S);
WriteLn('P = ',P);
S:=0;
For i:= 1 to 10 do
S:=S+i*i;
WriteLn('3: ');
WriteLn('S = ',S);
End.