s = str(input()) e=[] for i in range(len(s)): if s[i] in e: pass else: e.append(s[i]) print(len(e))