Task: Program Execution
Input (English): N, O, 9739, F, 1527, 1629, 2607, 4191, o, q, R, 5503
Output (English): 1, 2, 4, 9, 10, 11