Task: Program Execution
Input (English): Q 5001 1225 1289 R 3967 e u A w 6505 e 5069 225 4317 M H Y V J 3103 o 9929 3551 o 4137 y 4461 6233
Output (English): 17, 5001, 1225, 1289, 18, 3967, 5, 21, 1, 23, 6505, 5, 5069, 225, 4317, 13, 8, 25, 22, 10, 3103, 15, 9929, 3551, 15, 4137, 25, 4461, 6233