Task: Program Execution
Input (English): X, 3471, 7857, 6689, i, Y, 9313, 6689, 8547, 3149, j, 7393, 31, c, K, M, 1315, 7451, n
Output (English): X, i, Y, j, c, K, M, n, 3471, 7857, 6689, 9313, 6689, 8547, 3149, 7393, 31, 1315, 7451