Task: Program Execution
Input (English): 2, 4, ['A', 'p', '8003', 'g', '3349']
Output (English): g3008p