const [a, b, C] = require('fs').readFileSync('/dev/stdin', 'utf8').split(/\s/).map(Number);
let S = (a * b * Math.sin(C* (Math.PI / 180)) / 2).toFixed(8);
let L = (a + b + Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(C * (Math.PI / 180)))).toFixed(8);
let h = (b * Math.sin(C* (Math.PI / 180))).toFixed(8);

console.log(S);
console.log(L);
console.log(h);
