Problem: Recently, Anton has found a set. The set consists of small English letters. Anton carefully wrote out all the letters from the set in one line, separated by a comma. He also added an opening curved bracket at the beginning of the line and a closing curved bracket at the end of the line. 

Unfortunately, from time to time Anton would forget writing some letter and write it again. He asks you to count the total number of distinct letters in his set.

Input

The first and the single line contains the set of letters. The length of the line doesn't exceed 1000. It is guaranteed that the line starts from an opening curved bracket and ends with a closing curved bracket. Between them, small English letters are listed, separated by a comma. Each comma is followed by a space.

Output

Print a single number — the number of distinct letters in Anton's set.

Examples

Input

{a, b, c}


Output

3


Input

{b, a, b, a}


Output

2


Input

{}


Output

0

Solution (in PYTHON3):

Solution:
# 1 задача
# a = set(map(int, input().split()))
# b = set(map(int, input().split()))
# print(*sorted(list(a & b)))

# # 2 задача
# a = set(map(int, input().split()))
# b = set(map(int, input().split()))
# print(*sorted(list(a - b)))


# # 3 задача
# A. Девушка или Юноша
# n = input()
# length_str = len(set(n))
# print('CHAT WITH HER!' if length_str % 2 == 0 else 'IGNORE HIM!')
# https://codeforces.com/problemset/problem/236/A


# # 4 задача A. Не смешите мои подковы
# print(4-len(set(input().split())))
# https://codeforces.com/problemset/problem/228/A

# # 5 задача A. Почти счастливое число
# n = input()
# print('YES' if n.count('4') + n.count('7') == 7 or
#                n.count('4') + n.count('7') == 4 else 'NO')
# https://codeforces.com/problemset/problem/110/A

# # 6 задача A. Красивый год
# n = input()
# for i in range(int(n)+1, int(n)+1000):
#     if len(set(str(i))) == 4:
#         print(i)
#         break
# https://codeforces.com/problemset/problem/271/A

# # 7 задача A. I Wanna Be the Guy
# n = int(input())
# Little_X = set(map(int, input().split()))
# Little_X.discard(0)
# Little_Y = set(map(int, input().split()))
# Little_Y.discard(0)
# print('I become the guy.' if len(Little_Y | Little_X) == n
#       else 'Oh, my keyboard!')
# print((Little_Y | Little_X), len(Little_Y | Little_X))
# https://codeforces.com/problemset/problem/469/A

# # 7 задача A. Антон и буквы
n = set(input())
for i in ' ,{}':
    n.discard(i)
# n = n[1:-1].split(', ')
print(len(set(n)))
# https://codeforces.com/problemset/problem/443/A