inputer = len(input()) if inputer %2==0: result = int(inputer/2) else: result = int((inputer+1)/2) print(result)