Task: Program Execution
Input (English): g m 1785 k Q 9915 d 1589 d 5537 T Q b 9677 u 7711 N 5069 b u k 1949 m 7423 n R Y 2737 1173 7365 7179
Output (English): 3, 6, 8, 10, 14, 16, 18, 22, 24, 28, 29, 30, 31