Task: Program Execution
Input (English): 2, 5, ['1473', 'a', 'm', 'x', 'm']
Output (English): mxma