Task: Program Execution
Input (English): 4, 5, ['8475', 'H', '865', '8921', 'p', 'P']
Output (English): p1298