Task: Program Execution
Input (English): A O 5835 A r 3869 5945 y P 4823 7185 7929 X 2903 6455 2285 F T v Y m 8747 5417 c 7499 6653 4221 T
Output (English): 1, 15, 5835, 1, 18, 3869, 5945, 25, 16, 4823, 7185, 7929, 24, 2903, 6455, 2285, 6, 20, 22, 25, 13, 8747, 5417, 3, 7499, 6653, 4221, 20