include Math

a, b, c_ang = gets.split.map(&:to_f)
C = c_ang / 180 * PI
c = sqrt(a**2 + b**2 -2 * a * b * cos(C))
h = sqrt(c**2 - ((a**2 + c**2 - b**2) / (2 * a))**2)
L = a + b + c
S = a * h / 2

puts S, L, h
