str = list(input())
list = []
count = 0
for i in str:
if i not in list and ord(i)>=0 and ord(i)<128:
list.append(i)
count +=1
print(count)