Find all pairs (m,n)(m,n)(m,n) of positive integers such that m+nm+nm+n and mn+1mn+1mn+1 are both powers of 222 .