Suppose A is an m×n matrix and there exist n×m matrices C and D

Suppose A is an m×n matrix and there exist n×m matrices C and D such that CA=In and AD=Im.

Prove that m=n and C=D.