Task: Program Execution
Input (English): L 9997 1225 Y 4947 7515 l 3297 2377 7735 4331 L 6223 q X 8679 673 6397 6247 W 971 3799 t v r
Output (English): 12, 9997, 1225, 25, 4947, 7515, 12, 3297, 2377, 7735, 4331, 12, 6223, 17, 24, 8679, 673, 6397, 6247, 23, 971, 3799, 20, 22, 18