x = list(str(eval(input())))

i = 0

counter =0

while i<len(x)-1 :

    if(x[i]==x[i+1]):

        if x[i+1]=="0":

            x[i+1]="1"

        else:

            x[i+1]="0"

       # x[i+1]=x[i-1]

        counter+=1

    i+=1

print(counter)
receber = eval(input())

contador = 0

contaor = 0

casoUm=""

casoDois=""

if receber[0] == "1":

    for i in range(len(receber)):

        if i%2==0:

            casoUm+="1"

        else:

            casoUm+="0"

    for k in range(len(receber)):

        if receber[k] != casoUm[k]:

            contador+=1

else:

    for i in range(len(receber)):

        if i%2==0:

            casoDois+="0"

        else:

            casoDois+="1"

    for k in range(len(receber)):

        if receber[k] != casoDois[k]:

            contador+=1



print(contador)
x = list(str(eval(input())))
i = 0
counter = 0
while i < len(x) - 1:
    if x[i] == x[i + 1]:
        if x[i + 1] == "0":
            x[i + 1] = "1"
        else:
            x[i + 1] = "0"
        # x[i+1]=x[i-1]
        counter += 1
    i += 1
print(counter)

receber = eval(input())
contador = 0
contaor = 0
casoUm = ""
casoDois = ""
if receber[0] == "1":
    for i in range(len(receber)):
        if i % 2 == 0:
            casoUm += "1"
        else:
            casoUm += "0"
    for k in range(len(receber)):
        if receber[k] != casoUm[k]:
            contador += 1
else:
    for i in range(len(receber)):
        if i % 2 == 0:
            casoDois += "0"
        else:
            casoDois += "1"
    for k in range(len(receber)):
        if receber[k] != casoDois[k]:
            contador += 1
print(contador)

-x = list(str(eval(input()))) -i = 0 -counter = 0 -while i < len(x) - 1: -    if x[i] == x[i + 1]: -        if x[i + 1] == "0": -            x[i + 1] = "1" +receber = eval(input()) +contador = 0 +contaor = 0 +casoUm = "" +casoDois = "" +if receber[0] == "1": +    for i in range(len(receber)): +        if i % 2 == 0: +            casoUm += "1" -            x[i + 1] = "0" -        # x[i+1]=x[i-1] -        counter += 1 -    i += 1 -print(counter) +            casoUm += "0" +    for k in range(len(receber)): +        if receber[k] != casoUm[k]: +            contador += 1 +else: +    for i in range(len(receber)): +        if i % 2 == 0: +            casoDois += "0" +        else: +            casoDois += "1" +    for k in range(len(receber)): +        if receber[k] != casoDois[k]: +            contador += 1 +print(contador)