Task: Program Execution
Input (English): M, a, 857, N, Q, B, 8279, C, 3307, 261, P, 5389, n, 3199, 531, 1855
Output (English): 857, 8279, 3307, 261, 5389, 3199, 531, 1855