Task: Program Execution
Input (English): L 2533 4475 R 5559 6167 3631 1611 977 r 5165 o 3223 7289 3169 5263 B S 6127 b k 9437 k 4959 5077 K q 8925 p 1427
Output (English): 2, 3, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 19, 22, 24, 25, 28, 30