import sys readline=sys.stdin.readline write=sys.stdout.write N=readline().rstrip() ans=(len(N)+1)//2 print(ans)