Pagini recente » Cod sursa (job #1357493) | Rating Oana-Georgiana Plopeanu (oanaplopeanu) | Cod sursa (job #3002031) | Cod sursa (job #2426551) | Cod sursa (job #1039216)
var c:char;
l, cuv, k:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
l:=0; cuv:=0; k:=0;
while not eof do
begin
read(c);
if (c in ['a'..'z','A'..'Z']) then
begin
inc(l);
if k=0 then
begin
inc(cuv);
k:=1;
end;
end
else k:=0;
end;
writeln(l div cuv);
close(input);
close(output);
end._