Let $p$ be a prime dividing $a$. Clearly, $a$ and $p$ are odd, so $a-p$ is even so that $n-p<2022$, once if $a-p$ were greater than $2022$, $a$ could be written.