#include<iostream>
using namespace std;
#include<string>
#include<unordered_set>
int main(){
unordered_set<int>m;
string s;
cin >> s;
string res;
for(char c:s){
if(m.find(c) == m.end()){//set容器没有这个元素
m.insert(c);
res += c;
}
}
cout << res.size();
}