import std.stdio, std.string, std.array, std.conv, std.math;

void main() {
    double[] tmp = readln.chomp.split.to!(double[]);
    double a = tmp[0], b = tmp[1], c = tmp[2] * PI / 180;
    double s = 0.5 * a * b * sin(c);
    double l = a + b + sqrt(a ^^ 2 + b ^^ 2 - 2 * a * b * cos(c));
    double h = 2 * s / a;
    writefln("%0.8f", s);
    writefln("%0.8f", l);
    writefln("%0.8f", h);
}
