Task: Program Execution
Input (English): 2, 2, ['D', '2879', 'Z', '7773', '791']
Output (English): 2879