Task: Program Execution
Input (English): q, 3119, 3031, N, k, l, N, n, 9499, 7153, 3761, u, M, c, 1119, w, d, 3179, 1257
Output (English): 3119, 3031, 9499, 7153, 3761, 1119, 3179, 1257