Task: Program Execution
Input (English): 3, ['4879', 'm', '1435', '1197', 'd', 'm']
Output (English): 1197, d, m