Task: Program Execution
Input (English): 2, 3, ['9811', 'R', '4041', '9793', '7833', '3987']
Output (English): R, 4041