a, b = list(map(int, input().split()))

print((a * b, 2 * a + 2 * b))
a, b = list(map(int, input().split()))

print((a * b, (a + b) * 2))

a, b = list(map(int, input().split()))
print((a * b, 2 * a + 2 * b))

a, b = list(map(int, input().split()))
print((a * b, (a + b) * 2))

-print((a * b, 2 * a + 2 * b)) +print((a * b, (a + b) * 2))