Task: Program Execution
Input (English): 3, 5, ['5397', 'z', 'm', '7489', 'Y', 'p', '6761', '1247']
Output (English): Y7489m