//config = {stdin: 'tmp', newline: '\r\n'}; // win
config = {stdin: '/dev/stdin', newline: '\n'}; // linux

line = require('fs').readFileSync(config.stdin, 'ascii')
       .split(config.newline)[0].split(' ').map(Number);
(function (a, b, C) {
  console.log('%d\n%d\n%d',
    0.5 * a * b * Math.sin(C),
    a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(C)),
    b * Math.sin(C)
  );
}) (line[0], line[1], line[2] * 2 * Math.PI / 360);