Task: Program Execution
Input (English): M, N, 487, A, 8761, D, 8277, 5279, 8829, J, P, I, 8479, p, B, 145, L, N, Q, 5227, 3549
Output (English): 3, 5, 7, 8, 9, 13, 16, 20, 21