def f(x): x1 = set(x) c = 0 for i in x1: if 0 <= ord(i) <= 127: c += 1 return c s = input() print(f(s))