n variable x1xn positive integer value you give K constraint value look like value variable xi1xi2xim different among possible list value variable satisfy constraint select one minimum possible maxXi Output lexicographically list