'use strict';
(function(stdin) {
  var lines = stdin.toString().split('\n')[0];
  var result = (function(data) {
    var deg = data[2] * (Math.PI / 180);
    var a = data[0];
    var b = data[1];
    var c = Math.sqrt((Math.pow(a,2) + Math.pow(b,2)) - ((2 * (a * b)) * Math.cos(deg)));
    return [
      a * b / 2 * Math.sin(deg)
      , a + b + c
      , b * Math.sin(deg)
    ].join('\n')

  }(
    lines.split(' ').map(parseFloat)
  ));

  console.log(result);
}(require('fs').readFileSync('/dev/stdin', 'utf8')));