def my_func(in_num): res = set(str(in_num).replace("\n", "")) return len(res) print(my_func(input()))