N = int(input()) print(float(1/N))