Task: Program Execution
Input (English): n, A, 3283, X, k, d, s, 9935, 5723, J, 9999
Output (English): 3283, 9935, 5723, 9999