l = set(input())
n = 0
for i in l:
    if ord(i) <=127 or ord(i) >= 0:
        n += 1
    else:
        continue
print(n)