Pagini recente » Cod sursa (job #1091553) | Cod sursa (job #1435365) | Cod sursa (job #2955507) | Cod sursa (job #2711206) | Cod sursa (job #17642)
Cod sursa(job #17642)
{$A+,B-,D+,E+,F-,G-,I-,L+,N-,O-,P-,Q-,R-,S-,T-,V+,X+}
{$M 16384,0,655360}
program text1;
const betu : set of char = ['a'..'z','A'..'Z'];
var c:char;
n,h:longint;
f:text;
begin
assign(f,'text.in');
reset(f);
n:=0;h:=0;
while(not eof(f)) do
begin
read(f,c);
while(not (c in betu)) and (not eof(f)) do read(f,c);
while(c in betu) and (not eof(f)) do
begin
inc(h);
read(f,c);
end;
inc(n);
end;
close(f);
assign(f,'text.out');
rewrite(f);
write(f,h div n);
close(f);
end.