Task: Program Execution
Input (English): 2, 3, ['r', 'Y', '9769', '847']
Output (English): Y, 9769