Task: Program Execution
Input (English): 5, 3, ['w', '4111', 'H', '3145', 'v', 'H', '6127', 'J', 'v', 'B', 'l', 'A', 'B', 'P', 'A', 'B', '4591', '3621', '2099', '8169', 'X', 'v', '6161', 'u', 'R']
Output (English): v, J, l, P, 4591, 8169, 6161