Task: Program Execution
Input (English): 1521 R i 4507 4413 j J 3109 1575 v S d K 9699 5137 307 2175 1891 9557 A 1727 m d w G 1701 7985
Output (English): 1, 4, 5, 8, 9, 14, 15, 16, 17, 18, 19, 21, 26, 27