Pagini recente » Cod sursa (job #999444) | Cod sursa (job #1167542) | Cod sursa (job #2947015) | Cod sursa (job #492285) | Cod sursa (job #1650938)
var
s: string;
i, j, x, y, z: longint;
function eLitera(c: char): boolean;
begin
eLitera := (c in ['a'..'z']) or (c in ['A'..'Z']);
end;
begin
assign(input, 'text.in');
assign(output, 'text.out');
reset(input);
rewrite(output);
x := 0;
y := 0;
read(s);
for i := 1 to length(s) do
begin
if eLitera(s[i]) then x := x + 1;
if i < length(s) then
if not eLitera(s[i]) and eLitera(s[i+1]) then
y := y + 1;
end;
if eLitera(s[1]) then y := y + 1;
write(x div y);
end.