Pagini recente » Cod sursa (job #2136777) | Cod sursa (job #2518523) | Cod sursa (job #962404) | Cod sursa (job #3199173) | Cod sursa (job #1039188)
var c:char;
lungime, nr, t:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lungime:=0; nr:=0; suma:=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);
suma:=suma+lungime;
end;
lungime:=0;
end;
writeln(suma div nr);
close(input);
close(output);
end.