Task: Program Execution
Input (English): k, 1703, 6195, x, n, m, 9391, 2729, 3879, 1275, 797, Y, 479, x, 1011, N, 6905, R, 4857, 9441, Z, R
Output (English): 1703, 6195, 9391, 2729, 3879, 1275, 797, 479, 1011, 6905, 4857, 9441