print(len(input()) + 1 >> 1)