a = input().strip()
b = []

for i in a:
    if ord(i) >=0 and ord(i) <= 127:
        b.append(i)
    else:
        pass

c = list((dict.fromkeys(b)))
print(len(c))