Task: Program Execution
Input (English): 2, 3, ['3743', '4773', '385', '2901', '2243', '4679']
Output (English): 5158