#include <iostream>
using namespace std;
int main()
{
    bool judge[128]={0};//0~127的ASCII码标记数组
    int num=0;
    char ch;
    while(cin>>ch)//若出现则讲字符对应的ascii码对应的bool值置1
    {
        judge[int(ch)]=1;
    }
    for(int i=0;i<128;i++)
    {
        if(judge[i])
        {
            num++;
        }
    }
    cout<<num;
}