Pagini recente » Cod sursa (job #1598210) | Cod sursa (job #263836) | Diferente pentru utilizator/loo_k01 intre reviziile 21 si 65 | Cod sursa (job #788251) | Cod sursa (job #1039189)
var c:char;
lungime, nr, t:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lungime:=0; nr:=0; t:=0;
while not eof do
begin
read(c);
if (not(c in ['a'..'z','A'..'Z'])) then inc(lungime)
else if lungime>0 then
begin
inc(nr);
t:=t+lungime;
end;
lungime:=0;
end;
writeln(t div nr);
close(input);
close(output);
end.