def count_character(a):    
  for i in a:        
	if i in b:            
	  continue        
	else:            
	  b.append(i)    
  return len(b)
a=input()
b=[]
print(count_character(a))