n = int(input()) ans = float(1/n) print(ans)