Pagini recente » Cod sursa (job #2290815) | Cod sursa (job #2241457) | Cod sursa (job #130385) | Cod sursa (job #3248469) | Cod sursa (job #49487)
Cod sursa(job #49487)
var u,cuv:longint;
ch:char;
lit:set of char;
cuvant:byte;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lit:=['A'..'Z','a'..'z'];
cuv:=0;
u:=cuv;
cuvant:=0;
while not eoln do
begin
read(ch);
if ch in lit then
begin
cuvant:=1;
inc(u);
end;
if (not (ch in lit)) and (cuvant=1) then
begin
cuvant:=0;
inc(cuv);
end;
end;
if cuvant=1 then
begin
inc(cuv);
end;
write(u div cuv);
close(input);
close(output);
end.