str = input()num = 0list = []for i in str: if ord(i)>=0 and ord(i)<=127 and i not in list: list.append(i) num += 1print(num)