s = input()
length = len(set(s))
print(f"{length}")