a = int(input("Input a: "))
b = int(input("Input b: "))
p = 2 * (a + b)
s = a * b
print("p =", p)
print("s =", s)
a = int(input("Input a: "))
b = int(input("Input b: "))
p = 2 * (a + b)
s = a * b
print("p =", p)
print("s =", s)