import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(N): x = len(N) return (1 + x) // 2 print(main(read().rstrip()))