Task: Program Execution
Input (English): 3083, 1371, E, 4663, 5797, 9371, N, 8171, n, 3145
Output (English): 3083, 1371, 4663, 5797, 9371, 8171, 3145