Task: Program Execution
Input (English): B, g, s, i, 9979, R, 2459, 1367, 1667, 661, 9655, N, S, G, T, M, 6639, 2193, 5053
Output (English): 9979, 2459, 1367, 1667, 661, 9655, 6639, 2193, 5053