#include <iostream>
using namespace std;
int main(){
int folder[10]={0}, sum=0;
long long N;
cin >> N;
while (N!=0){
folder[N%10]++;
N/=10;
}
for (int j=0; j<10; j++)
if(folder[j]!=0) sum++;
cout << "sum:" << sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCl7CiAgICBpbnQgZm9sZGVyWzEwXT17MH0sIHN1bT0wOwogICAgbG9uZyBsb25nIE47CiAgICAKICAgIGNpbiA+PiBOOwoJd2hpbGUgKE4hPTApewogICAgICAgIGZvbGRlcltOJTEwXSsrOwogICAgICAgIE4vPTEwOwogICAgfQoJZm9yIChpbnQgaj0wOyBqPDEwOyBqKyspCgkJaWYoZm9sZGVyW2pdIT0wKQlzdW0rKzsKIAljb3V0IDw8ICJzdW06IiA8PCBzdW07CiAKICAgIHJldHVybiAwOwp9