Task: Program Execution
Input (English): Q o 1187 j 4579 6967 A x D d 5667 3979 981 1105 w 1855 C 4053 n 375 r 5649 X 4873 6823 1311 8729 7287 n 8045 8607 6037 w w
Output (English): 17, 15, 1187, 10, 4579, 6967, 1, 24, 4, 4, 5667, 3979, 981, 1105, 23, 1855, 3, 4053, 14, 375, 18, 5649, 24, 4873, 6823, 1311, 8729, 7287, 14, 8045, 8607, 6037, 23, 23