The formula cannot insert additional row to show you the numbers when more than 1 set of numbers are present in input. We can try to get all the sets of numbers from input in the subsequent columns.
Again as we do not know how many sets of expected output will be there in the input, we may have to drag formula manually to subsequent columns.