a, b, c = STDIN.gets.chomp.split(" ")
a, b, c = [a.to_f, b.to_f, c.to_i]

c = Math::PI * c / 180
d2 = (a * a) + (b * b) - 2 * a * b * Math.cos(c)
d = Math.sqrt(d2)

h = b * Math.sin(c)
l = a + b + d
s = a * h / 2

p s
p l
p h
