Task: Program Execution
Input (English): N, Z, T, W, J, j, c, b, J, 6345, 7645, 5629, t, A
Output (English): 6345, 7645, 5629