from sys import stdin def main(): #入力 readline=stdin.readline n=int(readline()) print(1/n) if __name__=="__main__": main()