def main():

    N = int(eval(input()))

    print(((N + 1) // 2))

    return





main()

def main():

    N = int(eval(input()))

    print((-(-N // 2)))

    return





main()

def main():
    N = int(eval(input()))
    print(((N + 1) // 2))
    return


main()

def main():
    N = int(eval(input()))
    print((-(-N // 2)))
    return


main()

-    print(((N + 1) // 2)) +    print((-(-N // 2)))