import numpy as np



s = eval(input())

ss = [int(i) for i in s]

print((np.sum(ss)))
s = eval(input())

print((s.count('1')))
import numpy as np

s = eval(input())
ss = [int(i) for i in s]
print((np.sum(ss)))

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

-import numpy as np - -ss = [int(i) for i in s] -print((np.sum(ss))) +print((s.count("1")))