Task: Program Execution
Input (English): 2, 3, ['3017', '5561', 'Y']
Output (English): Y1655