while True:
    try:        
        a = input()
        b = set(a) #提取a中不重复的字符
        print(len(b))
    except:
        break