Task: Program Execution
Input (English): 2389, 9801, 4727, 679, 9149, W, 729, N
Output (English): W, N, 2389, 9801, 4727, 679, 9149, 729