str_in = input()
length = 0
result = ''
for x in str_in:
    if x not in result:
        result = result + x
        length = length+1
print(length)