# 字符转ascii:ord
# ascii转字符:chr
char_set = set()
s = str(input())
for c in s:
    ascii = ord(c)
    if 0<=ascii<=127 and c!='\n':
        if c not in char_set:
            char_set.add(c)
print(len(char_set))