Let nn and mm be positive integers. We call a set SS of positive integers (n,m)(n, m)-good if it satisfies the following three conditions:

(i) We have mSm \in S.

(ii) For all aSa \in S, all of the positive divisors of aa are elements of SS too.

(iii) For all mutually different numbers a,bSa, b \in S, we have an+bnSa^n + b^n \in S.

Determine all pairs (n,m)(n, m) such that the set of all positive integers is the only (n,m)(n, m)-good set.