print(len({ord(c) for c in input() if 0 <= ord(c)<=127}))