s=input().split()

a=int(s[0])

b=int(s[1])

x=a*b

y=2*(a+b)

print((x,y))
a,b=input().split()

a=int(a)

b=int(b)

print((a*b,2*a+2*b))
s = input().split()
a = int(s[0])
b = int(s[1])
x = a * b
y = 2 * (a + b)
print((x, y))

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

-s = input().split() -a = int(s[0]) -b = int(s[1]) -x = a * b -y = 2 * (a + b) -print((x, y)) +a, b = input().split() +a = int(a) +b = int(b) +print((a * b, 2 * a + 2 * b))