a = float(input())
b = float(input())
S = a*b
P = (a+b)*2
print(S,P)
2. Они не могут быть равносильными