Task: Program Execution
Input (English): N, j, q, E, Z, W, 8103, 8513, D, 339, h
Output (English): 8103, 8513, 339