class Problem0903: def solve(this): n = int(input()) print(1.0 / n) if __name__ == "__main__": problem = Problem0903() problem.solve()