Task: Program Execution
Input (English): 3, 5, ['T', '1577', '8641', '5779', '901', '3101', '5725']
Output (English): 10997751468