Pagini recente » Cod sursa (job #2494061) | Cod sursa (job #3270892) | Cod sursa (job #2122416) | Cod sursa (job #1908225) | Cod sursa (job #48276)
Cod sursa(job #48276)
var u,cuv:longint;
wq:string;
ch:char;
lit:set of char;
begin
assign(input,'text.in');
assign(output,'text.out');
reset(input);
rewrite(output);
lit:=['A'..'Z','a'..'z'];
while not eoln do
begin
read(ch);
if ch in lit then
begin
wq:=wq+ch;
inc(u);
end;
if not (ch in lit) and (wq<>'') then
begin
inc(cuv);
wq:='';
end;
end;
if wq<>'' then
begin
inc(cuv);
end;
write(u div cuv);
close(input);
close(output);
end.