Task: Program Execution
Input (English): A, i, 5167, 4159, N, y, p, n, 2159, 9953, Y, 9221, 3091, W, 7131, Q, M, h, x, 5095, E
Output (English): 5167, 4159, 2159, 9953, 9221, 3091, 7131, 5095