In triangle $K M N$, it is known that $\sin \angle K N M=\frac{\sqrt{3}}{2}$ and $\cos \angle K M N=\frac{1}{3}$. Find the ratio of the lengths of the altitudes dropped from vertex $N$ to side $M$ and from vertex $M$ to side $N K$.

#