def main(): n = int(input()) print(round(1 / n, 6)) main()