a, b, degC = gets.split( " " ).map { |val| val.to_f }
radC = degC*Math::PI/ 180.0
h = Math.sin( radC ) * b
S = (a*h)/2
x = Math.cos( radC ) * b
x -= a
c = Math.sqrt(  x**2 + h**2  ) 
L = a + b + c

puts( S )
puts( L )
puts( h )