Task: Program Execution
Input (English): 2973, F, b, J, 6173, 6563, 9519, x, c, 6939, 9939, 147, L, 5801, x, 5103, W, f, l, 1583, 1889, l, 3227
Output (English): 2973, 6173, 6563, 9519, 6939, 9939, 147, 5801, 5103, 1583, 1889, 3227