function getNum(str){
let set = new Set(str.split(''));
let num = Array.from(set).length;
console.log(num)
}
let line;
while(line=readline()){
getNum(line)
}
function getNum(str){
let set = new Set(str.split(''));
let num = Array.from(set).length;
console.log(num)
}
let line;
while(line=readline()){
getNum(line)
}