Pagini recente » Cod sursa (job #931317) | Cod sursa (job #2286316) | Cod sursa (job #2519101) | Cod sursa (job #2725561) | Cod sursa (job #754717)
Cod sursa(job #754717)
program tex;
var c:char;
f:text;
i:longint;
k,n:longint;
begin
assign(f,'text.in');
reset(f);
k:=0;
n:=0;
while not eof(f) do
begin
read(f,c);
if c in ['a'..'z','A'..'Z'] then
begin
inc(k);
while not( c in ['a'..'z','A'..'Z']) do
begin
inc(n);
read(f,c);
end;
end;
end;
close(f);
assign(f,'text.out');
rewrite(f);
writeln(f,n div k);
close(f);
end.