# input()会自动去除换行符,直接将字符串转为set去重后求长度
while True:
    try:
        print(len(set(input())))    
    except:
        break