#这道题跟第九题很相似
#只需要遍历字符串a,新字符存进字符串b,最后输出b的长度即可
a=input()
b=""
for i in a:
    if i not in b:
        b+=i
print(len(b))