Task: Program Execution
Input (English): 2, 4, ['7853', 'J', 'B', '4119', '8339', 'I', 'P', '5859', 'K', 'P']
Output (English): 9114BJ