from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N = input() print((len(N) + 1) // 2) main()