Task: Program Execution
Input (English): j, q, 8017, V, 6183, j, 2557, 7093, P, 1597, G
Output (English): 8017, 6183, 2557, 7093, 1597