Task: Program Execution
Input (English): 577 Z 9185 P 6219 4633 8063 l 3185 x m 4043 371 9087 6023 3665 283 1231 a 7239 K 81 S R 7091 2895 7361 y 7791 7631
Output (English): 577, 26, 9185, 16, 6219, 4633, 8063, 12, 3185, 24, 13, 4043, 371, 9087, 6023, 3665, 283, 1231, 1, 7239, 11, 81, 19, 18, 7091, 2895, 7361, 25, 7791, 7631