# coding: utf-8
#lines = <<'EOS'
#4 3 90
#EOS

lines = $stdin.read

array = lines.split("\n")

str = array[0]

# a ?????????, b ?????????, C?????§???????????????
a = str.split(" ")[0].to_i
b = str.split(" ")[1].to_i
C = str.split(" ")[2].to_i

# ????§???¢?????¢??? S => a*b*sin(C) / 2
printf "%f\n", a * b * Math.sin(C * Math::PI / 180) / 2
S = a * b * Math.sin(C * Math::PI / 180) / 2
# ??¨????????? L
printf "%f\n", a+b+Math.sqrt(a**2+b**2)
# a ???????????¨????????¨???????????? h
printf "%f\n", 2 * S / a