#include <iostream> #include <unordered_set> using namespace std; int main() { string str; unordered_set<char> s; char c; while (cin >> str) { for (char c:str){ s.insert(c); } cout << s.size() << endl; } }