Task: Program Execution
Input (English): x, 371, 3709, u, J, 6173, B, 6939, r, 2261, 2757, 5327, 1877
Output (English): 371, 3709, 6173, 6939, 2261, 2757, 5327, 1877