d=input() str_=list() n=len(d) for i in range(n): if d[i] not in str_: str_+=d[i] num=len(str_) print(num)