Task: Program Execution
Input (English): n P 2451 W R 7399 6319 8917 5689 791 a 8307 M i d k 5619 8441 u 7471 2735 d 3445 r 6011 z 8743 7227 c 9165 Y L 3345 8609 H V
Output (English): 14, 16, 2451, 23, 18, 7399, 6319, 8917, 5689, 791, 1, 8307, 13, 9, 4, 11, 5619, 8441, 21, 7471, 2735, 4, 3445, 18, 6011, 26, 8743, 7227, 3, 9165, 25, 12, 3345, 8609, 8, 22