import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
Scanner in
= new Scanner
(System.
in); int[] folder = new int[10];
long N = in.nextLong();
while(N != 0) {
folder[(int)N % 10]++;
N /= 10;
}
int sum = 0;
for (int i = 0; i < 10; i++)
if(folder[i]!=0) sum++;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWludFtdIGZvbGRlciA9IG5ldyBpbnRbMTBdOwogICAgCWxvbmcgTiA9IGluLm5leHRMb25nKCk7CiAgICAJd2hpbGUoTiAhPSAwKSB7CiAgICAgICAgCWZvbGRlclsoaW50KU4gJSAxMF0rKzsKICAgICAgICAJTiAvPSAxMDsKICAgIAl9CiAgICAJaW50IHN1bSA9IDA7CiAgICAJZm9yIChpbnQgaSA9IDA7IGkgPCAxMDsgaSsrKQogICAgICAgIAlpZihmb2xkZXJbaV0hPTApIHN1bSsrOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoc3VtKTsJCgl9Cn0=