Just do it digit by digit
```\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int a = 0;\n        int b = n;\n        int m = 1;\n        while(b > 1) {\n        
```\nclass Solution {\n    public int[] getNoZeroIntegers(int n) {\n        int a = 0;\n        int b = n;\n        int m = 1;\n        while(b > 1) {\n            int d = (b % 10 == 1) ? 2 : 1;\n            a += d * m;\n            b -= d;\n            b /= 10;\n            m *= 10;\n        }\n        \n        return new int[]{a, n - a};\n    }\n}
[]