Task: Program Execution
Input (English): Q, 1887, 8771, T, j, 2859, L, M, 3437, 7957, 1539
Output (English): 1, 4, 5, 7, 8