Task: Program Execution
Input (English): 5473, X, t, 1915, T, q, 5567, t, Y, R, W, G, 9971, 5561, m, 7399, y, 595, 3303, 3227, n
Output (English): 5473, 1915, 5567, 9971, 5561, 7399, 595, 3303, 3227