Task: Program Execution
Input (English): 2, 2, ['7475', '585', 'U']
Output (English): 585