let content = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', buf => {
  content += buf;
});

process.stdin.on('end', () => {
  let [a, b, angle] = content
    .trim()
    .split(' ')
    .map(n => parseInt(n, 10));
  const rad = toRad(angle);
  const area = (a * b * Math.sin(rad)) / 2;
  const height = b * Math.sin(rad);
  const len =
    a +
    b +
    Math.sqrt(
      Math.pow(a - b * Math.cos(rad), 2) + Math.pow(b * Math.sin(rad), 2)
    );
  console.log([area, len, height].map(n => n.toFixed(6)).join('\n'));
});

const toRad = angle => (angle / 180) * Math.PI;
