import sys def _solve(D): return (D + 1) // 2 def solve(in_): D = len(next(in_).rstrip()) return _solve(D) def main(): answer = solve(sys.stdin.buffer) print(answer) if __name__ == '__main__': main()