Task: Program Execution
Input (English): 2217, 1277, 3181, 4543, 7263, 6957, e, 7955, M, 2985, 8431
Output (English): 2217, 1277, 3181, 4543, 7263, 6957, 7955, 2985, 8431