Clearly, the contribution from those $r$ with $A(r)>0$ can be neglected.
However, we prefer to avoid this issue altogether by neglecting the contribution of $B$ to $S$.
Go to the list of words starting with: a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z