#include <iostream>
#include <set>
using namespace std;

int main() {
    string str;
    cin >> str;
    set<char> s(str.begin(), str.end());
    cout << s.size() << endl;
    return 0;
}

直接用字符串给set<char>定义就行 自动去重 不用再insert了