Pagini recente » Cod sursa (job #1457297) | Cod sursa (job #1600123) | Cod sursa (job #159613) | Cod sursa (job #2023103) | 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.