import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();//得到带空格的字符串
        String strs[] = str.split(" ");
        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);
        int c = Integer.parseInt(strs[2]);
        double circumference = a + b + c;
        //利用海伦公式求三角形面积
        double p = (double)(a + b + c) / 2;
        double area = Math.sqrt(p * (p - a) * (p - b) * (p - c));
        System.out.println( "circumference="
                            + String.format("%.2f", circumference) + " area=" + String.format("%.2f",area));
    }
}