Task: Program Execution
Input (English): n, p, 4947, x, Z, 1681, 113, 775, 5005, U, 5077, 6131, j, e, B, 8631, k, k, 5069, q, 7901
Output (English): 1, 2, 4, 5, 10, 13, 14, 15, 17, 18, 20