Task: Program Execution
Input (English): Y 5321 7963 R E 1681 897 9617 m 3779 1977 W w D 1227 a O 701 9497 f L Y 8669 6625 H 5147 407 M D Q v 3825 O 1 p 7015 g q 3821 4395
Output (English): 2, 3, 6, 7, 8, 10, 11, 15, 18, 19, 23, 24, 26, 27, 32, 34, 36, 39, 40