Task: Program Execution
Input (English): 2, 5, ['5797', 'M', '3625', 'X', 'c', '1693', '7315', 'x']
Output (English): c, X, 3625, M