Task: Program Execution
Input (English): 2, 3, ['713', '247', '313']
Output (English): 560