Task: Program Execution
Input (English): 4871 D P 8701 A 3025 H D B h A 5615 2441 x e j 5481 d 8555 G 2747 f 269 i f 6531 5633 Q 2191 7529 j J W p
Output (English): 2, 3, 5, 7, 8, 9, 10, 11, 14, 15, 16, 18, 20, 22, 24, 25, 28, 31, 32, 33, 34