Task: Program Execution
Input (English): 1447, 8495, 1177, z, z, 6031, g, 9493, Y, 5413, 1539, 3361, w, 3443, W, q, B
Output (English): 1447, 8495, 1177, 6031, 9493, 5413, 1539, 3361, 3443