Task: Program Execution
Input (English): 2, 7, ['P', 'Q', 'i', '1593', 'M', '8577', 'd', 'Y']
Output (English): d7758M3951iQ