Task: Program Execution
Input (English): 573, 1907, g, w, 9129, p, 5687, 3367, 5313, 3369, V
Output (English): 573, 1907, 9129, 5687, 3367, 5313, 3369