import re a=input() b=re.findall(r'(.*?)',a) c=set(b) f=list(c) g=[] for t in f: if t !=None and t !='' : g.append(t) d=len(g) print(d)