Written By : MathModel
As written in the statement we print p then s where
and
a,b=map(int,input().split()) print(2*(a+b),a*b)