import sys
from collections import deque

string_list = list(sys.stdin.readline().strip())

print(len(set(string_list)))

垃圾题目毁我青春