import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
public class A_Anton_and_Letters {
static BufferedReader br;
public static void main(String[] args) throws IOException{
br = new BufferedReader(new InputStreamReader(System.in));
String test = br.readLine();
Set<String> sets = new HashSet<>();
String test1 = test.substring(1, test.length()-1);
StringTokenizer stk = new StringTokenizer(test1);
while(stk.hasMoreTokens()) {
String target = stk.nextToken();
String inner = target;
if(inner.charAt(inner.length()-1)==',') {
inner = target.substring(0,target.length()-1);
}
// System.out.println(inner);
sets.add(inner);
}
System.out.println(sets.size());
}
}
기본적인 입출력 문제
set을 통해서 유일성을 확인