#include <iostream>
#include <unordered_set>
using namespace std;
int main() {
string str;
size_t res = 0;
cin >> str;
unordered_set<char> mySet;
for(auto c : str){
if(mySet.count(c) == 0){
res++;
}
mySet.insert(c);
}
cout << res << endl;
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号