Task: Program Execution
Input (English): N, 8887, m, q, 1311, s, 1255, 3865, 1521, 3931, m, 2235, X, 9119, c, 6371
Output (English): 8887, 1311, 1255, 3865, 1521, 3931, 2235, 9119, 6371