Task: Program Execution
Input (English): N, a, 6673, 3871, 187, m, f, 2563, Y, 871
Output (English): 3, 4, 5, 8, 10