s=input().strip()
st=[]
for i in s:
    if i not in st:
        st.append(i)
print(len(st))