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:
x=input()
a=x[1:len(x)-1]
z=a.split(", ")
anumber=0
bnumber=0
cnumber=0
dnumber=0
enumber=0
fnumber=0
gnumber=0
hnumber=0
inumber=0
jnumber=0
knumber=0
lnumber=0
mnumber=0
nnumber=0
onumber=0
pnumber=0
qnumber=0
rnumber=0
snumber=0
tnumber=0
unumber=0
vnumber=0
wnumber=0
xnumber=0
ynumber=0
znumber=0
if z.count("a")>0:
    anumber=1
if z.count("b")>0:
    bnumber=1
if z.count("c")>0:
    cnumber=1
if z.count("d")>0:
    dnumber=1
if z.count("e")>0:
    enumber=1
if z.count("f")>0:
    fnumber=1
if z.count("g")>0:
    gnumber=1
if z.count("h")>0:
    hnumber=1
if z.count("i")>0:
    inumber=1
if z.count("j")>0:
    jnumber=1
if z.count("k")>0:
    knumber=1
if z.count("l")>0:
    lnumber=1
if z.count("m")>0:
    mnumber=1
if z.count("n")>0:
    nnumber=1
if z.count("o")>0:
    onumber=1
if z.count("p")>0:
    pnumber=1
if z.count("q")>0:
    qnumber=1
if z.count("r")>0:
    rnumber=1
if z.count("s")>0:
    snumber=1
if z.count("t")>0:
    tnumber=1
if z.count("u")>0:
    unumber=1
if z.count("v")>0:
    vnumber=1
if z.count("w")>0:
    wnumber=1
if z.count("x")>0:
    xnumber=1
if z.count("y")>0:
    ynumber=1
if z.count("z")>0:
    znumber=1
print(anumber+bnumber+cnumber+dnumber+enumber+fnumber+gnumber+hnumber+inumber+jnumber+knumber+lnumber+mnumber+nnumber+onumber+pnumber+qnumber+rnumber+snumber+tnumber+unumber+vnumber+wnumber+xnumber+ynumber+znumber)