Task: Program Execution
Input (English): 7499, k, X, 5659, 3459, H, 1845, 3035, Y, G
Output (English): 7499, 5659, 3459, 1845, 3035