#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
ITP1_10-B

Math Functions - Triangle
????§???¢

????§???¢????????? a, b ??¨?????????????§? C ???????????????????§???¢?????¢??? S?????¨????????? L, a ???????????¨????????¨???????????? h ????±???????????????°?????????????????????????????????
Input

a ?????????, b ?????????, C?????§????????????????????´??°???????????????????????§?????????????????????
Output

S, L, h ???????????????1??????????????????????????????0.0001??\????????????????????£????????????????????¨????????????
Sample Input

4 3 90

Sample Output

6.00000000
12.00000000
3.00000000

=end
Pi = 3.14159265359
fh=STDIN
fl=fh.gets.chomp.split
a=fl[0].to_f
b=fl[1].to_f
c=fl[2].to_f
theta =  c * Pi / 180.0
s = a * b * Math.sin(theta) / 2.0
l = a + b + Math.sqrt(a**2 + b**2 - 2*a*b*Math.cos(theta))
h = b * Math.sin(theta)
puts s
puts l
puts h