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:
'''
##FACTORIAL
def fact(n):
	if(n > 1):
		return n*fact(n-1)
	else:
		return 1

T = int(input())
for t in range(T):
	n = int(input())
	print(fact(n))
'''

'''
N = int(input())
l1 = [0]
l2 = [0]
P1 = []
P2 = []
s1 = 0
s2 = 0
z1 = [-100]
z2 = [-100]
for i in range(1,N+1):
	p1,p2 = map(int, input().split())
	s1 += p1
	s2 += p2
	P1.append(s1)
	P2.append(s2)
for i in range(N):
	if(P1[i] > P2[i]):
		d = P1[i]-P2[i]
		z1.append(d)
	elif(P1[i] < P2[i]):
		d = P2[i]-P1[i]
		z2.append(d)
z1.sort()
z2.sort()	
mx1 = z1[-1]
mx2 = z2[-1]
if(mx1 > mx2):
	print(1,mx1)
else:
	print(2,mx2)
'''

'''
won = []
T = int(input())
for t in range(T):
	n = int(input())
	crct = input()
	ans = input()
	correct = list(crct)
	answered = list(ans)
	money = list(map(int, input().split()))
	c = 0 
	for i in range(len(correct)):
		if(correct[i] == answered[i]):
			c += 1
	if(c==n):
		print(money[c])
	else:
		print(max(money[:c+1]))
'''

'''
T = int(input())
for t in range(T):
	s = input()
	a = s.count('A')
	b = s.count('B')
	for i in range(1,len(s)-1):
		if((s[i]=='.' and s[i-1]=='A') and (s[i+1]=='A')):
			a += 1
		elif((s[i]=='.' and s[i-1]=='B') and (s[i+1]=='B')):
			b += 1
	print(a,b)
'''

'''
f = ''
T = int(input())
for t in range(T):
	s = input()
	for i in range(len(s)-2):
		if(s[i:i+3] == '010' or s[i:i+3] == '101'):
			print("Good")
			f = 'g'
			break
	else:
		print("Bad")
'''

'''
T = int(input())
for t in range(T):
	n,k = map(int, input().split())
	w = list(map(int, input().split()))
	w.sort()
	l = []
	L = []
	s = 0
	S = 0
	wsum = 0
	if(n-k >= k):
		for i in range(k):
			l.append(w[i])
			s += w[i]
		for i in range(k,n):
			L.append(w[i])
			S += w[i]
		print(S-s)
	else:
		for i in range(n-k):
			l.append(w[i])
			s += w[i]
		for i in range(n-k,n):
			L.append(w[i])
			S += w[i]
		print(S-s)
'''

'''
T = input()
T = T.split(' ')
for i in range(T.count('')):
	T.remove('')
T = int(T[0])
for t in range(T):
	i = input()
	l = i.split(' ')
	c = l.count('')
	for i in range(c):
		l.remove('')
	n = int(l[0])
	k = int(l[1])
	if(n!=0 and k!=0):
		s = int(n/k)
		t = n%k
		print(s,t)
	elif(n == 0):
		print(0,0)
	elif(k==0):
		print(0,n)
'''

'''
T = int(input())
for t in range(T):
	n =int(input())
	if(n==0):
		print(0)
	elif(n==1):
		print(1)
	elif(n==2):
		print(2)
	else:
		if(n%2==0):
			print(n)
		else:
			print(int((n+1)/2))
'''

'''
def permutation(lst):
 
	if len(lst) == 0:
		return []
	if len(lst) == 1:
		return [lst]
	l = [] 
	for i in range(len(lst)):
		m = lst[i]
		remLst = lst[:i] + lst[i+1:]
		for p in permutation(remLst):
			l.append([m] + p)
	return l


T = int(input())
for t in range(T):
	n = int(input())
	l = list(map(int, input().split()))
	r = permutation(l)
	D = []
	for i in range(len(r)):
		d = 0
		for j in range(0,len(l)-1):
			d += abs(r[i][j]-r[i][j+1])
		D.append(d)
	print(min(D))
'''

'''
n,h = map(int, input().split())
l = list(map(int, input().split()))
seq = list(map(int, input().split()))
L = l
f = 0
pick = 0
for i in range(len(seq)):
	if(seq[i]==1 and f==0):
		continue
	if(seq[i]==1 and f!=0):
		f -= 1
	if(seq[i]==2 and f==len(l)-1):
		continue
	if(seq[i]==2 and f!=len(l)-1):
		f += 1
	if(seq[i]==3 and pick!=0):
		continue
	if(seq[i]==3 and pick==0 and l[f]>0):
		l[f] -= 1
		pick = 1
	if(seq[i]==3 and pick==0 and l[f]==0):
		continue
	if(seq[i]==4 and l[f]<h and pick==1):
		l[f] += 1
		pick = 0
	if(seq[i]==4 and l[f]==h):
		continue
	if(seq[i]==0):
		break
print(*l)
'''

'''
l = []
revenue = []
n = int(input())
for q in range(n):
	budget = int(input())
	l.append(budget)


for i in range(len(l)):
	c = 0
	c = l[i]
	d = 0
	for j in range(len(l)):
		if(c <= l[j]):
			d += 1
	revenue.append(c*d)
print(max(revenue))
'''

'''
n = int(input())
l = list(map(int, input().split()))
d = 0
for i in range(len(l)-1):
	for j in range(i+1,len(l)):
		d += abs(l[i]-l[j])
print(d)
'''

'''
n,k = map(int, input().split())
l = list(map(int, input().split()))
d = 0
for i in range(len(l)-1):
	for j in range(i+1,len(l)):
		if(abs(l[i] - l[j]) >= k):
			d += 1
print(d)
'''

'''
T = int(input())
for t in range(T):
	s = []
	i = input()
	f1 = i.index(' ')
	a = i[:f1]
	b = i[f1+1:]
	la = len(a)	;	lb = len(b)
	La = list(a);	Lb = list(b)
	d = abs(la-lb)
	if(la>lb):
		for i in range(d):
			Lb.insert(0,0)
	elif(la<lb):
		for i in range(d):
			La.insert(0,0)
	for i in range(len(La)):
		s.append(0)
	for i in range(len(La)):
		s[i] = (int(La[i])+int(Lb[i]))
		s[i] = str(s[i])
		if(len(s[i])>1):
			s[i] = s[i][-1]
	a = ''.join(s)
	print(int(a))
'''

'''
T = int(input())
for t in range(T):
	n = int(input())
	l = list(map(int, input().split()))
	lcm = 1
	L = []
	for i in range(len(l)-1):
		for j in range(i+1,len(l)):
			mx1 = max(l[i],l[j])
			z = mx1
			while(1):
				if(z%l[i]==0 and z%l[j]==0):
					lcm = z
					L.append(lcm)
					break
				z += mx1
	print(min(L))
'''

'''
T = int(input())
for t in range(T):
	a,e = map(int, input().split())
	print(a%e)
'''


s = input()
l = []
L = []
for i in s:
	if(i!='{' and i!=',' and i!=' ' and i!='}'):
		l.append(i)
for j in l:
	if(j not in L):
		L.append(j)
print(len(L))