The other answer given is incorrect.
Think of it this way and you don't have to deal with negative exponents:
Write 6 as 2×3
Write m4 as m×m×m×m
Write n3 as n×n×n
Write m6 as m×m×m×m×m×m
The shortcut rule is:
Subtract the exponents of like bases, largest minus smallest, and put
the result in the numerator or denominator depending on where the
larger exponent was. In this case the larger exponents of both letters
were in the denominator, so when you subtract the exponents 3-1=2 and
6-4=2, you put both 2 exponents of n and m in the denominator.
Edwin