program Perimeter;
var a, b, P: integer;
begin
write('a=');
readln(a);
write('b=');
readln(b);
P:=(a+b)*2;
writeln('P=', P);
end.
program Perimeter;
var a, b, P: integer;
begin
write('a=');
readln(a);
write('b=');
readln(b);
P:=(a+b)*2;
writeln('P=', P);
end.