import math
a = int(input())
b = int(input())
c = int(input())

result = abs(a - b) / (a + b)**3 - math.cos(c)

print(result)
