Pagini recente » Diferente pentru problema/brazi intre reviziile 15 si 16 | Cod sursa (job #1946890) | Diferente pentru utilizator/crawler intre reviziile 44 si 46 | Cod sursa (job #3121421) | Cod sursa (job #1039184)
var c:char;
lungime, nr:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lungime:=0; nr:=0;
while not eof do
begin
read(c);
if (not(c in ['a'..'z','A'..'Z'])) then inc(lungime)
else if lungime>0 then inc(nr);
end;
writeln(lungime/nr);
close(input);
close(output);
end.