Task: Program Execution
Input (English): B, M, 5399, n, 3169, N, 5261, 5341, l, V
Output (English): 5399, 3169, 5261, 5341