Task: Program Execution
Input (English): a 6457 N 4107 A 5885 9277 3431 6713 r 7847 3443 3665 l 9495 J 899 n 1051 j 6893 M 9879 2141 9693 645 2911 8785 n
Output (English): 1, 3, 5, 10, 14, 16, 18, 20, 22, 29