a, b, c = map(int, input().split()) x = (a*b + b*c + c*a)*2 y = a * b * c print(x, y) if x > y: print(2) else: print(3)