Determine which abelian groups $A$ fit into a short exact sequence $0\to\Bbb Z_{p^m}\xrightarrow{f} A\xrightarrow{g}\Bbb Z_{p^n}\to 0$ with $p$ prime.
I already showed that if $A=\Bbb Z_{p^{m+n-k}}\ \oplus\Bbb Z_{p^k}$ for $0\leq k\leq\min\{m,n\}$ the sequence is exact. Left to show any such $A$ is of that form. For that, I showed that $A$ is generated by two elements $\alpha,\beta$ such that $f(1) = \alpha$ and $g(\beta)=1$. And also by the fundamental theorem of finitely generated abelian group, $A\simeq \Bbb Z_{p^{m_1}}\oplus\cdots\oplus\Bbb Z_{p^{m_h}}$ for some $h\geq 1$ and $m_i\geq 0$. But I can't conclude $A\simeq Z_{p^{m+n-k}}\ \oplus\Bbb Z_{p^k}$. Could you help?