Task: Program Execution
Input (English): 2987 1115 d M 7095 y c s q D 5043 p 8349 g 9319 K z 7287 9285 8605 855 C 7641 1759 565 1355 741 A x 9055 7469 I 5169 a 9793 t 4225 5305 5779 3745
Output (English): 1, 2, 5, 11, 13, 15, 18, 19, 20, 21, 23, 24, 25, 26, 27, 30, 31, 33, 35, 37, 38, 39, 40