#include <iostream>
#include <cstring>
using namespace std;
int main() {
string s;
cin >> s;
for(int j = 0; j < s.size(); j++) {
int i = j + 1;
while (i < s.size()) {
if(s[j] == s[i] and i != j) s.erase(i,1);
else i++;
}
}
cout << s.size();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJc3RyaW5nIHM7CgljaW4gPj4gczsKCWZvcihpbnQgaiA9IDA7IGogPCBzLnNpemUoKTsgaisrKSB7CgkJaW50IGkgPSBqICsgMTsKCQl3aGlsZSAoaSA8IHMuc2l6ZSgpKSB7CgkJCWlmKHNbal0gPT0gc1tpXSBhbmQgaSAhPSBqKSBzLmVyYXNlKGksMSk7CgkJCWVsc2UgaSsrOwoJCX0KCX0KCWNvdXQgPDwgcy5zaXplKCk7CglyZXR1cm4gMDsKfQ==