Task: Program Execution
Input (English): 3657, 535, N, 3035, R, 4669, T
Output (English): 1, 2, 4, 6