Task: Program Execution
Input (English): 8513 Y 7631 M q 2753 g 8017 1971 f r U P o 2441 y a P 351 o G 8029 R 1909 4145 Y 4193 O x j 8853 5131 1529 1987 v q 8963 7629 p 4153
Output (English): 1, 3, 6, 8, 9, 15, 19, 22, 24, 25, 27, 31, 32, 33, 34, 37, 38, 40