Task: Program Execution
Input (English): 1987 921 P 6761 a 1059 X I 3769 9939 z 2581 T 9457 e 5731 W 4421 p 9837 I 5709 K 8545 k 6039 A 3665 8739 A 7579 Y E
Output (English): 1, 2, 4, 6, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 29, 31