def main(n):

	odd = "1"

	even= "0"

	if(n[0] =="0"):

		# zero mode

		odd = "0"

		even= "1"

	return sum((((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n)))



print((main(eval(input()))))
def main(n):

	odd = "1"

	even= "0"

	if(n[0] =="0"):

		# zero mode

		odd = "0"

		even= "1"

	#return sum((((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n)))

	a = sum((((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n),2))

	b = sum((((i % 2 == 0) and n[i] == even)) for i in range(0, len(n),2))

	return a+b



print((main(eval(input()))))

#assert(1 == main("000"))

#assert(3 == main("10010010"))

#assert(0 == main("0"))
def main(n):
    odd = "1"
    even = "0"
    if n[0] == "0":
        # zero mode
        odd = "0"
        even = "1"
    return sum(
        (((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd))
        for i in range(1, len(n))
    )


print((main(eval(input()))))

def main(n):
    odd = "1"
    even = "0"
    if n[0] == "0":
        # zero mode
        odd = "0"
        even = "1"
    # return sum((((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n)))
    a = sum((((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n), 2))
    b = sum((((i % 2 == 0) and n[i] == even)) for i in range(0, len(n), 2))
    return a + b


print((main(eval(input()))))
# assert(1 == main("000"))
# assert(3 == main("10010010"))
# assert(0 == main("0"))

-    return sum( -        (((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd)) -        for i in range(1, len(n)) -    ) +    # return sum((((i % 2 == 0) and (n[i] == even)) or ((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n))) +    a = sum((((i % 2 != 0) and n[i] == odd)) for i in range(1, len(n), 2)) +    b = sum((((i % 2 == 0) and n[i] == even)) for i in range(0, len(n), 2)) +    return a + b +# assert(1 == main("000")) +# assert(3 == main("10010010")) +# assert(0 == main("0"))