sentence = eval(input())

count = 0

for i in range(len(sentence)):

    if sentence[i] == "1":

        count+=1



print(count)

s = eval(input())

print((s.count("1")))
sentence = eval(input())
count = 0
for i in range(len(sentence)):
    if sentence[i] == "1":
        count += 1
print(count)

s = eval(input())
print((s.count("1")))

-sentence = eval(input()) -count = 0 -for i in range(len(sentence)): -    if sentence[i] == "1": -        count += 1 -print(count) +s = eval(input()) +print((s.count("1")))