Task: Program Execution
Input (English): 2, 3, ['2677', '1891', 'P', '47', 'j', 'E', '7363', 'J', 'U', '5139']
Output (English): 1891P