/*
运行时间17ms,哈希遍历
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws Exception{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
String str = null;
while((str=bf.readLine())!=null){
byte ss[]=new byte[128];
char ch[]=str.toCharArray();
int a=0;
int num=0;
for(int i=0;i<ch.length;i++){
a=ch[i]; //强制转换为0-127
ss[a]=1; //哈希数组
}
for(int j=0;j<128;j++){
if(ss[j]==1)
num++;
}
System.out.println(num);
//System.out.println(str);
//System.out.println(n);
}
}
}