def main(): n = input() ans = (len(n) + 1) // 2 print(ans) if __name__ == "__main__": main()