#http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_10_B

a,b,c = gets.split.map(&:to_f)
rad = c * Math::PI / 180
h = b * Math.sin(rad)
s = a * h / 2 
l = a + b + Math.sqrt(a**2 + b**2 - (2 * a * b * Math.cos(rad)) )

puts s
puts l
puts h