利用set()
s = input()
x = set()
for i in s:
    x.add(i)
print(len(x))