Task: Program Execution
Input (English): 2, 4, ['o', '1751', '5247', 'p', 'q', '3097', 'b', 'f', '5505']
Output (English): p74251571