Task: Program Execution
Input (English): Z 2061 F C 6147 c 889 B d l 4447 1413 7325 5867 2401 h 1201 113 787 a 1155 e x X y j 7045 r D 2113 Y 4985 5997 935 p 4663 x 1687 J 163
Output (English): 1, 3, 4, 6, 8, 9, 10, 16, 20, 22, 23, 24, 25, 26, 28, 29, 31, 35, 37, 39