n=input()
num='0123456789'
count=0
for i in n:
    if i in num or i.isalpha():
        count+=1
print(count)