Task: Program Execution
Input (English): B, A, 5433, f, n, m, 2091, 1347, 5771, 1961, S, N, 5493, 3375
Output (English): 5433, 2091, 1347, 5771, 1961, 5493, 3375