str = input()
set1 = set()
list1 = []
for i in str:
    set1.add(i)
for i in set1:
    list1.append(i)

print(len(list1))