Task: Program Execution
Input (English): 5, 10, ['r', 'n', '3359', '3701', 'B', '3767', 'N', '6077', '1551', 'U']
Output (English): U, 1551, 6077, N, 3767, B