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 JAVA):

Solution:
import java.io.*;
import java.io.IOException;

public class  Main
{
    public static void main(String[]args)throws NumberFormatException, IOException
    {
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        String input = bf.readLine();
        String s = input.substring(1, input.length()-1);
        String [] st = s.split(", ");
        int mask = 0;
        int r=0;
        if(input.equals("{}"))
            System.out.println(0);
        
        else
        {   
            for(int i = 0; i < st.length; i++)
            {
                switch (st[i])
                {
                case "a" : r = 1;break;
                case "b" : r = 2;break;
                case "c" : r = 3;break;
                case "d" : r = 4;break;
                case "e" : r = 5;break;
                case "f" : r = 6;break;
                case "g" : r = 7;break;
                case "h" : r = 8;break;
                case "i" : r = 9;break;
                case "j" : r = 10;break;
                case "k" : r = 11;break;
                case "l" : r = 12;break;
                case "m" : r = 13;break;
                case "n" : r = 14;break;
                case "o" : r = 15;break;
                case "p" : r = 16;break;
                case "q" : r = 17;break;
                case "r" : r = 18;break;
                case "s" : r = 19;break;
                case "t" : r = 20;break;
                case "u" : r = 21;break;
                case "v" : r = 22;break;
                case "w" : r = 23;break;
                case "x" : r = 24;break;
                case "y" : r = 25;break;
                case "z" : r = 26;break;
                }
                mask = mask | (1<<r);       
            }
            int x = Integer.bitCount(mask);
            System.out.println(x);
        }
    }
}