Task: Program Execution
Input (English): 1005 u 4367 q 545 a 8101 465 Z 1669 3881 f m 6067 N 371 B 5787 a P 907 3169 1239 T 3529 8907 o C 3903 r 1079 f 5589 7163 3847 9261 7063
Output (English): 1005, 21, 4367, 17, 545, 1, 8101, 465, 26, 1669, 3881, 6, 13, 6067, 14, 371, 2, 5787, 1, 16, 907, 3169, 1239, 20, 3529, 8907, 15, 3, 3903, 18, 1079, 6, 5589, 7163, 3847, 9261, 7063