# 解法1:直接打印
print(len(set(input())))

# 解法2:匿名函数
# print((lambda x: len(set(x)))(input()))