s = input()
nums = set()
for char in s:
    nums.add(char)
print(len(nums))