import sys

str=input()
list=list(str)
list1=[]
for i in list:
    if i in list1:
        continue
    else:
        list1.append(i)
print(len(list1))