Task: Program Execution
Input (English): 2, 3, ['g', 'R', '1285', 'y', 'Y', '9837', '1703', '159', 'x', '9443', '1225', '6227', 'X']
Output (English): 1285R