Task: Program Execution
Input (English): M 5517 7249 2905 I Y x d 3337 6705 A 633 U 1131 8955 a 2837 6893 C 5357 Y X 2623 221 p r r r 6693 3145 6059 7315 7133 4763 e N e 3151
Output (English): 2, 3, 4, 9, 10, 12, 14, 15, 17, 18, 20, 23, 24, 29, 30, 31, 32, 33, 34, 38