#include <iostream>
#include <unordered_set>

using namespace std;

int main()
{
    unordered_set<char> s;
    char c;
    cin >> noskipws;
    while (cin >> c) {
        if (c == '\n') {
            break;
        }
        s.insert(c);
    }
    cout << s.size() << endl;
    return 0;
}