def func(s):
diff_char = set()
for c in s:
# ord(c)方法可以查询字符对应的ASCII码值
if ord(c) in range(128):
# 利用set自动去重功能
diff_char.add(c)
return len(diff_char)
print(func(input().strip()))
def chars_count(a):
chars =[]
for x in a:
if ord(x) in range(0, 128) and x not in chars:
chars.append(x)
print(len(chars))
while True:
try:
chars_count(input())
except EOFError:
break
string = input() num = 0 involve = [] for i in string: acsii = ord(i) if acsii>=0 and acsii<=127 and acsii not in involve: num+=1 involve.append(acsii) print(num)