Task: Program Execution
Input (English): n, 2975, 9615, 8745, p, 691, j, V, k, q, 9869, X, w, U
Output (English): 2, 3, 4, 6, 11