Task: Program Execution
Input (English): 5123, 1989, d, 1651, A, 1909, U, 873, 1781, 3743, 819, 4377
Output (English): 5123, 1989, 1651, 1909, 873, 1781, 3743, 819, 4377