Task: Program Execution
Input (English): w G d c 3383 U W 1767 9713 4423 w B c 2849 4929 5039 1733 7897 3501 m 977 e h y 2351 339 e 4887 3665 4909 6173 8795 421 P T 6911 9171 q V 3025
Output (English): 1, 2, 3, 4, 6, 7, 11, 12, 13, 20, 22, 23, 24, 27, 34, 35, 38, 39