the difference easy hard version maximum value nYou give positive integer number n you love good number want find small good number great equal nThe positive integer call good represent sum distinct power 3 ie duplicate power 3 allowedFor example 30 good number 30 33 31 1 good number 1 30 12 good number 12 32 31 2 good number can not represent sum distinct power 3 2 30 30 19 good number can not represent sum distinct power 3 example representation 19 32 32 30 32 31 31 31 30 invalid 20 good number can not represent sum distinct power 3 example representation 20 32 32 30 30 invalid Note exist representation 19 20 sum power 3 consist distinct power 3for give positive integer n find small m n le m m good numberyou answer q independent query