Task: Program Execution
Input (English): m, n, 481, a, 343, 19, l, l, 477, 71
Output (English): 1, 3, 4, 7, 8, 9