Task: Program Execution
Input (English): 5851, N, q, 333, f, a, K, 7429, 2223, D, 653
Output (English): 2, 3, 5, 6, 7, 10