Task: Program Execution
Input (English): 6, 9, ['X', '2803', '3261', '5767', 'P', '8121', 'n', 'Q', '175', '7389', '2265']
Output (English): 175Qn8121