Task: Program Execution
Input (English): 2, ['X', 'R', '8419', 'X', 'y']
Output (English): X, R