def strCount(s):
    string = set(list(s))
    print(len(string))

strCount(input())