Var S,P,i: Integer;
Begin
P:=1;
S:=0;
for i:=1 to 100 do
begin
if (i mod 3 = 0) then
S:=S+i;
P:=P*i;
end;
Writeln ('S = ' , S);
Writeln ('P = ' , P);
Readln;
End.
Var S,P,i: Integer;
Begin
P:=1;
S:=0;
for i:=1 to 100 do
begin
if (i mod 3 = 0) then
begin
S:=S+i;
P:=P*i;
end;
end;
Writeln ('S = ' , S);
Writeln ('P = ' , P);
Readln;
End.