Task: Program Execution
Input (English): N, 6129, 8613, 7103, n, 5121, 3181, 3423, J, 1369, 4907
Output (English): N, n, J, 6129, 8613, 7103, 5121, 3181, 3423, 1369, 4907