while True:
    try:
        n = int(input())
        print('1' if n > 0 else '0.5' if n == 0 else '0')
    except EOFError:
        break