Task: Program Execution
Input (English): 8049, V, n, 1213, 4237, 9475, F, 5349, D, J, N, c, P, 5251, W, w, 1537, X, 6915, P
Output (English): 8049, 1213, 4237, 9475, 5349, 5251, 1537, 6915