var a,b, P: real;
begin
write('vvedite storonu 1');
readln(a,b);
P:=2*(a+b);
write('P = ',P);
readln;
end.
var a,b, P: real;
begin
write('vvedite storonu 1');
readln(a,b);
P:=2*(a+b);
write('P = ',P);
readln;
end.