Task: Program Execution
Input (English): 2, 2, ['Y', '4185']
Output (English): 5814