mystr=input()
coverstr=''
for i in mystr:
    if i not in coverstr and   0 <= ord(i) <= 127 and i != '\n':
        coverstr+=i
print(len(coverstr))