var a:string;
i,k:integer;
begin
readln(a);
for i:=1 to length(a) do begin
if pos(a[i],'')<>0 then inc(k);
end;
writeln(k);
end.
var a:string;
i,k:integer;
begin
readln(a);
for i:=1 to length(a) do begin
if pos(a[i],'')<>0 then inc(k);
end;
writeln(k);
end.