Task: Program Execution
Input (English): 4, 5, ['5289', 'v', '1711', '5839', 'R', '4487']
Output (English): 5839R