Pagini recente » Arhiva de probleme | Cod sursa (job #2621361) | Diferente pentru problema/tero intre reviziile 6 si 7 | Diferente pentru problema/psychtraining intre reviziile 12 si 13 | Cod sursa (job #1039198)
var c:char;
l, c, k:longint;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
l:=0; c:=0; k:=0;
while not eof do
begin
read(c);
if not (c in ['a'..'z','A'..'Z']) then
begin
inc(l);
if k=0 then
begin
inc(c);
k:=1;
end;
end
else k:=0;
end;
writeln(l div c);
close(input);
close(output);
end._