input = list([int(n) for n in input().split(' ')])

a = int(input[0])

b = int(input[1])

x = a * b

y = (a + b) * 2

print(("{} {}".format(x, y)))
input = list([int(n) for n in input().split(' ')])

a = input[0]

b = input[1]

x = a * b

y = (a + b) * 2

print(("{} {}".format(x, y)))
input = list([int(n) for n in input().split(" ")])
a = int(input[0])
b = int(input[1])
x = a * b
y = (a + b) * 2
print(("{} {}".format(x, y)))

input = list([int(n) for n in input().split(" ")])
a = input[0]
b = input[1]
x = a * b
y = (a + b) * 2
print(("{} {}".format(x, y)))

-a = int(input[0]) -b = int(input[1]) +a = input[0] +b = input[1]