# 20240910
s = input()
a = ''
for i in s:
    if 0 <= ord(i) <= 127:
        if i not in a:
            a += i
print(len(a))