Task: Program Execution
Input (English): 4015, S, a, 7569, A, 4247, 3335, E, X, 2803, 3027, 4931, 4101, X, 8709, s, B
Output (English): 4015, 7569, 4247, 3335, 2803, 3027, 4931, 4101, 8709