const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const arr = input.split(' ').map(Number);
const a = arr[0];
const b = arr[1];
const C = arr[2] * Math.PI / 180;
const S = a * b * Math.sin(C) / 2;
const c = Math.sqrt(Math.pow(a,2) + Math.pow(b,2) - 2 * a * b * Math.cos(C));
const L = a + b + c;
const h = b * Math.sin(C);
console.log(S.toFixed(4) + '\n' + L.toFixed(4) + '\n' + h.toFixed(4));

