Task: Program Execution
Input (English): X, 5235, 377, N, 3041, 5261, 4297, 4511
Output (English): 2, 3, 5, 6, 7, 8