Task: Program Execution
Input (English): P Y 7755 Q 7517 o r l 829 G 1227 1671 7139 8301 2941 9243 w P 3393 U b 5557 r h 9747
Output (English): 16, 25, 7755, 17, 7517, 15, 18, 12, 829, 7, 1227, 1671, 7139, 8301, 2941, 9243, 23, 16, 3393, 21, 2, 5557, 18, 8, 9747