#S: Area of the triangle
#L: The length of the circumference of the triangle
#h: The height of the triangle with side a as a bottom edge
#一つづつの計算を出すプログラム

a,b,c=gets.split.map(&:to_f)

puts a*b*Math.sin(c/180*3.14159265358979)/2                              #Area of the triangle
puts a+b+Math.sqrt(a**2+b**2-2*a*b*Math.cos(c/180*3.14159265358979))     #The length of the circumference of the triangle
puts b*Math.sin(c/180*3.14159265358979)                                  #The height of the triangle with side a as a bottom edge

