Task: Program Execution
Input (English): 2, 3, ['6277', '4575', 'R', '3081', 'a']
Output (English): R5754