'use strict';

Main(function(input) {
    var [a, b, radC] = input.split(' ').map(function(n) {return parseInt(n, 10);});
    var C = radC * Math.PI / 180;
    var L = a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(C));
    var S = 0.5 * a * b * Math.sin(C);
    var h = b * Math.sin(C);
    console.log(S, L, h);
});

function Main(main) {
  var input = '';
  var sin = process.stdin;

  sin.resume();
  sin.setEncoding('utf8');
  sin.on('data', function(chunk) {
    input += chunk;
  });
  sin.on('end', function() {
    main(input);
  });
}