Task: Program Execution
Input (English): 8583 2439 E 7771 x h w 4693 9047 2677 9609 P P 4301 V 1179 8195 Z g D J 7461 1211 2579 A G O M A 7077 Z p V 5351 3225 6043 337 5077 G 3059
Output (English): 1, 2, 4, 8, 9, 10, 11, 14, 16, 17, 22, 23, 24, 30, 34, 35, 36, 37, 38, 40