Task: Program Execution
Input (English): 9241, N, 5639, 391, 4391, 661
Output (English): 1, 3, 4, 5, 6