Task: Program Execution
Input (English): 1237 635 C 9551 1211 q 5487 d 6527 8987 6149 3223 p B 7355 1631 A 191 1359 T n 7109 B I T w
Output (English): 1237, 635, 3, 9551, 1211, 17, 5487, 4, 6527, 8987, 6149, 3223, 16, 2, 7355, 1631, 1, 191, 1359, 20, 14, 7109, 2, 9, 20, 23