Task: Program Execution
Input (English): x, n, Q, N, O, j, f, u, 3981, 7823, s, X, 8665, 2283, e, 1547, F
Output (English): 3981, 7823, 8665, 2283, 1547