Task: Program Execution
Input (English): 3, 6, ['795', '4781', '2551', '8123', '5751', '4961', 'z']
Output (English): 21386