import math
a, b, c = map(int, input().split(" "))
circumference = a+b+c
p = circumference / 2
area = math.sqrt(p*(p-a)*(p-b)*(p-c))
print("circumference=%.2f area=%.2f" % (circumference, area))
import math
a, b, c = map(int, input().split(" "))
circumference = a+b+c
p = circumference / 2
area = math.sqrt(p*(p-a)*(p-b)*(p-c))
print("circumference=%.2f area=%.2f" % (circumference, area))