import math

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

result = ( math.log(1 + c) / -b)**4 + abs(a)

print(result)
