Task: Program Execution
Input (English): A M 4265 P e W I 7481 a L w 2891 347 6469 T I 7517 9357 v d N S G 4715 235 359
Output (English): 1, 13, 4265, 16, 5, 23, 9, 7481, 1, 12, 23, 2891, 347, 6469, 20, 9, 7517, 9357, 22, 4, 14, 19, 7, 4715, 235, 359