program DemKiTuTrongXau;
uses crt;
var
s: string;
i, count: integer;
begin
clrscr;
write('Nhap vao mot xau: ');
readln(s);
count := 0;
for i := 1 to length(s) do
begin
if s[i] <> ' ' then
count := count + 1;
end;
writeln('So luong ki tu trong xau la: ', count);
readln;
end.