t=input()
count=0
for i in range (len(t)):
  if(t[i].isdigit()):
    count=count+1
print (count)

26ea7c4642436702cdcbd95edba611cb44a257e2
<mask token>

<mask token>
for i in range(len(t)):
    if t[i].isdigit():
        count = count + 1
print(count)

t = input()
count = 0
for i in range(len(t)):
    if t[i].isdigit():
        count = count + 1
print(count)

t=input()
count=0
for i in range (len(t)):
  if(t[i].isdigit()):
    count=count+1
print (count)
