import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone {
public static void main
(String[] args
) { Scanner x
= new Scanner
(System.
in); int c = 0;
str = x.nextLine();
for(int i = 0; i < s.length(); i++) {
for(int j = 0; j < str.length(); j++) {
if( str.charAt(j) == s.charAt(i) ) {
c++;
}
}
}
}
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgSWRlb25lIHsKCQlwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgewoJCVNjYW5uZXIgeCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJU3RyaW5nIHN0cjsKCQlpbnQgYyA9IDA7CgkJU3RyaW5nIHMgPSAiQUVJT1VZIjsKCQlzdHIgPSB4Lm5leHRMaW5lKCk7CgkJZm9yKGludCBpID0gMDsgaSA8IHMubGVuZ3RoKCk7IGkrKykgewoJCQlmb3IoaW50IGogPSAwOyBqIDwgc3RyLmxlbmd0aCgpOyBqKyspIHsKCQkJCWlmKCBzdHIuY2hhckF0KGopID09IHMuY2hhckF0KGkpICkgewoJCQkJCWMrKzsJCQkKCQkJCX0KCQkJfQoJCX0KCQlTeXN0ZW0ub3V0LnByaW50KGMpOwoJfQp9