/*
思路:
    利用set集合统计字符的个数
*/
#include <iostream>
#include <unordered_set>
using namespace std;
int main() {
    string str;
    cin >> str;
    unordered_set<char> mySet;
    for(auto c : str){
        mySet.insert(c);
    }
    cout << mySet.size() << endl;
    return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号