word = input()
l = set()
for i in word:
    if i not in l:
        l.add(i)
print(len(l))

判重采取集合的方式,进行长度计算