Task: Program Execution
Input (English): n, r, 97, 65, 369, 65, 491, 191, 403, x, a, w, l
Output (English): 0, 1, 3, 4, 5, 6, 7, 9