# 20240910 def f(s): a = '' for i in s: if 0 <= ord(i) <= 127: if i not in a: a += i return a s = input() print(len(f(s)))