var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split(" ").map(Number);
var a=Arr[0];
var b=Arr[1];
var C=Arr[2];
var x=C*Math.PI/180;
var S=1/2*a*b*Math.sin(x);
var L=a+b+Math.sqrt(a*a+b*b-2*a*b*Math.cos(x));
var h=b*Math.sin(x);
console.log(S.toFixed(4));
console.log(L.toFixed(4));
console.log(h.toFixed(4));