22. Find some integers $A$ and $B$ such that

$$
\frac{A}{999}+\frac{B}{1001}=\frac{1}{999999}
$$
86.22. Let's rewrite the equality as $1001 A + 999 B = 1$. From this, it is clear that we can take $A = 500$ and $B = -501$.