import math x = float(input().strip()) result = (math.pi - x + 1) / 2 print("{0:.20f}".format(result))