P = int(input()) print(1 / (1 - P) - 1)