Task: Program Execution
Input (English): 2, ['9783', 'R', 'X', '3589', 'n', '4029']
Output (English): X, 3589, n, 4029