process.stdin.resume();
process.stdin.setEncoding("utf8");

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout,
});

const lines = [];

reader.on("line", (line) => {
  lines.push(line);
});

reader.on("close", () => {
  let [a, b, l] = lines[0].split(" ").map(Number);
  l = (l * Math.PI) / 180;
  const h = Math.sin(l) * b;
  const c = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(l));
  console.log(((a * h) / 2).toFixed(5));
  console.log((a + b + c).toFixed(5));
  console.log(h.toFixed(5));
});

