program Hello;
var a, b, S, P: integer;
begin
a := 8;
b := 10;
S := a * b;
P := 2 * (a + b);
writeln(S);
writeln(P);
end.
program Hello;
var a, b, S, P: integer;
begin
a := 8;
b := 10;
S := a * b;
P := 2 * (a + b);
writeln(S);
writeln(P);
end.