Task: Program Execution
Input (English): n P 5447 3011 7233 6201 i b 3295 6935 4089 I 575 M S 1785 4653 3637 5807 4653 V 2261 6479 2625 U 961 6451 N 6575 X X 4165 9693 X R
Output (English): 14, 16, 5447, 3011, 7233, 6201, 9, 2, 3295, 6935, 4089, 9, 575, 13, 19, 1785, 4653, 3637, 5807, 4653, 22, 2261, 6479, 2625, 21, 961, 6451, 14, 6575, 24, 24, 4165, 9693, 24, 18