include Math
require 'bigdecimal'
def calc_area(a, b, sin_c)
  s = a * b * sin_c * 0.5
  return s #????§???????
end

def calc_length(a, b, cos_c)
  c = (a**2 + b**2 - 2*a*b*cos_c)**0.5
  l = a + b + c
  return l #????§???????
end

def calc_height(a, b, sin_c)
  h = b * sin_c
  return h #?????????a
end

input_values = gets.chomp.split.map(&:to_i)
a = input_values[0]
b = input_values[1]
c = input_values[2]
if c == 90 || c == 270
  sin_c = 1
  cos_c = 0
elsif c == 180 || c == 0
  sin_c = 0
  cos_c = 1
else
  sin_c = BigDecimal(sin(c).to_s).floor(8).to_f
  cos_c = BigDecimal(cos(c).to_s).floor(8).to_f
end
puts calc_area(a, b, sin_c)
puts calc_length(a, b, cos_c)
puts calc_height(a, b, sin_c)