string=str(input())
l=[]
for i in string:
    if i not in l:
        l.append(i)
#print(l)
print(len(l))