Task: Program Execution
Input (English): m, 303, n, X, N, 2723, 3809, 2789, 1237, 3745, 3979, k, Y, V, 5749, d, 2225, B, r, z, B, R, D
Output (English): 303, 2723, 3809, 2789, 1237, 3745, 3979, 5749, 2225