Task: Program Execution
Input (English): X 4941 315 P 587 z 1831 7135 U Q 113 A y 8323 c e f X Z Y 8673 7317 8291 4863 7721 1061 q 5699 T g 4159 v 3467 g
Output (English): 1, 4, 6, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20, 27, 29, 30, 32, 34