Task: Program Execution
Input (English): G 6009 4089 1503 t D n 3987 8505 4991 6809 5223 1777 499 G B 4299 Q 1509 1281 r 6731 l i 6013 3837 P i v 8041 T 5019 8667 g 781 6811 5163
Output (English): 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 17, 19, 20, 22, 25, 26, 30, 32, 33, 35, 36, 37