Task: Program Execution
Input (English): Q 2973 2573 G w v 247 X 9901 729 8503 C 8125 B I A 6131 9369 a 7021 m c 9963 9791 3609 6385 3485 1955 f v a E 2745 9697 1723 T
Output (English): 1, 4, 5, 6, 8, 12, 14, 15, 16, 19, 21, 22, 29, 30, 31, 32, 36