Task: Program Execution
Input (English): 2, 3, ['9965', '9005', 'N']
Output (English): 9005N