Task: Program Execution
Input (English): 3147, 7823, F, T, m, w, h, 7481, E, v, 5497, 4543, 7347, v, 1963, W, e, 1637, 2101, 3171, 8315
Output (English): 3147, 7823, 7481, 5497, 4543, 7347, 1963, 1637, 2101, 3171, 8315