我宣布我彻底学会了python压行:)

print("\n".join(map(str,(lambda x,y,z:(2*(x*y+x*z+y*z),x*y*z))(*map(int,input().split())))))