Task: Program Execution
Input (English): 2, 3, ['V', '4861', '1665', 'X', '2339', 'N', 'v', '8809', '6823', '1865', 'd', '6581', '1473', '497', '9449', '3259', 'G']
Output (English): 4861, 1665