a,b,c=list(map(int,input().split()))
print(2*(a*b+b*c+c*a),a*b*c,sep='\n')