Task: Program Execution
Input (English): A m T C 7641 a A 6035 E 3261 189 3227 r 7673 I p 4591 5871 x X y N w e h 8375 4415 t n
Output (English): 1, 2, 3, 4, 6, 7, 9, 13, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29