Please vote for undeleting this question: Bounds involving number of invariant factors and elementary divisors. The question is interesting, and I provided the OP enough hints in order to solve it, so they could post an answer, or maybe someone else. This way other students will benefit from it.
Last but not least, it was the asker that deleted their question, after helpful comments.