import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
double a, b, alpha, h=0;
Scanner sc
= new Scanner
(System.
in); a = sc.nextDouble();
b = sc.nextDouble();
alpha = sc.nextDouble();
h
= ((a
-b
) / 2 ) * Math.
tan(alpha
); System.
out.
format("%f", h
* ( (a
+b
) / 2)); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWRvdWJsZSBhLCBiLCBhbHBoYSwgaD0wOwoJCVNjYW5uZXIgc2MgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWEgPSBzYy5uZXh0RG91YmxlKCk7CgkJYiA9IHNjLm5leHREb3VibGUoKTsKCQlhbHBoYSA9IHNjLm5leHREb3VibGUoKTsKCQloID0gKChhLWIpIC8gMiApICogTWF0aC50YW4oYWxwaGEpOwoJCVN5c3RlbS5vdXQuZm9ybWF0KCIlZiIsIGggKiAoIChhK2IpIC8gMikpOwoJfQp9