def odds_of_oddness(n):

    return (n/2)/n if n%2 == 0 else int((n//2)+1)/n
def main():
    n = int(input())
    print(odds_of_oddness(n))

if __name__ == '__main__':
    main() def odds_of_oddness(n):

    return (n/2)/n if n%2 == 0 else int((n//2)+1)/n odds_of_oddness return (n/2)/n if n%2 == 0 else int((n//2)+1)/n (n/2)/n if n%2 == 0 else int((n//2)+1)/n n%2 == 0 n%2 n 2 0 (n/2)/n n/2 n 2 n int((n//2)+1)/n int((n//2)+1) int (n//2)+1 n//2 n 2 1 n n n def main():
    n = int(input())
    print(odds_of_oddness(n)) main n = int(input()) n int(input()) int input() input print(odds_of_oddness(n)) print odds_of_oddness(n) odds_of_oddness n if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def odds_of_oddness(n):

    return (n/2)/n if n%2 == 0 else int((n//2)+1)/n def odds_of_oddness(n):

    return (n/2)/n if n%2 == 0 else int((n//2)+1)/n odds_of_oddness def main():
    n = int(input())
    print(odds_of_oddness(n)) def main():
    n = int(input())
    print(odds_of_oddness(n)) main
def odds_of_oddness(n):

    return (n/2)/n if n%2 == 0 else int((n//2)+1)/n
def main():
    n = int(input())
    print(odds_of_oddness(n))

if __name__ == '__main__':
    main()
