n = int(input()) print((n + (n * n + 4) ** 0.5) / 2)