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

print(( "%s %s" % ( a * b, 2 * ( a + b ) ) ))
x = input().split()

a, b = int(x[0]), int(x[1])



print(("%d %d" % (a * b, 2 * (a + b))))



[a, b] = list(map(int, input().split()))
print(("%s %s" % (a * b, 2 * (a + b))))

x = input().split()
a, b = int(x[0]), int(x[1])
print(("%d %d" % (a * b, 2 * (a + b))))

-[a, b] = list(map(int, input().split())) -print(("%s %s" % (a * b, 2 * (a + b)))) +x = input().split() +a, b = int(x[0]), int(x[1]) +print(("%d %d" % (a * b, 2 * (a + b))))