def main():
    n = int(input())
    even = n // 2
    print(1 - even / n)

if __name__ == "__main__":
    main() def main():
    n = int(input())
    even = n // 2
    print(1 - even / n) main n = int(input()) n int(input()) int input() input even = n // 2 even n // 2 n 2 print(1 - even / n) print 1 - even / n 1 even / n even n if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n = int(input())
    even = n // 2
    print(1 - even / n) def main():
    n = int(input())
    even = n // 2
    print(1 - even / n) main
def main():
    n = int(input())
    even = n // 2
    print(1 - even / n)

if __name__ == "__main__":
    main()
