/*
 * 解题思路: 去重统计, HashSet
 * 补充说明: 其他人的回到里判断了输入字符的范围(题干中说明的大于0且小于128)
 */
import java.util.*;

public class Main {
    public static void main(String[] args) {
        String str = (new Scanner(System.in)).nextLine();
        HashSet<Integer> set = new HashSet();
        for(int i = 0; i < str.length(); i++) {
            if (!set.contains(str.charAt(i))) {
                set.add((int)str.charAt(i));
            }
        }
        System.out.println(set.size());
    }
}