Pagini recente » Borderou de evaluare (job #3169662) | Cod sursa (job #629271) | Cod sursa (job #973423) | Cod sursa (job #734734) | Cod sursa (job #1089086)
var a: array[1..10000] of char;
i, n, l, c: integer;
begin
assign(input,'text.in');
reset(input);
assign(output,'text.out');
rewrite(output);
n:=0; l:=0; c:=1;
while not eof do Begin
inc(n);
read(a[n]);
if (a[n] in ['a'..'z', 'A'..'Z']) then
Begin
inc(l);
if a[n-1]=' ' then inc(c);
end;
end;
writeln(l div c);
close(input);
close(output);
end.