#!/usr/bin/env ruby

include Math

if __FILE__ == $0 then
	a, b, C = gets.split.map(&:to_f)
	S = a * b * sin(C*PI/180) / 2
	L = a + b + sqrt(a**2 + b**2 - 2*a*b*cos(C*PI/180))
	h = b * sin(C*PI/180)

	p S, L, h
end
