(x,y)=list(map(int, input().split(" ")))

print((x * y, 2 * x + 2* y))
x,y=list(map(int,input().split()))

print(x*y,2*(x+y))
(x, y) = list(map(int, input().split(" ")))
print((x * y, 2 * x + 2 * y))

x, y = list(map(int, input().split()))
print(x * y, 2 * (x + y))

-(x, y) = list(map(int, input().split(" "))) -print((x * y, 2 * x + 2 * y)) +x, y = list(map(int, input().split())) +print(x * y, 2 * (x + y))