Task: Program Execution
Input (English): g, 1385, 5531, 6171, 5895, N, 9511, 2513, 1989, Z, h, g, 9417, 1237, 5419, A, P, 567, 4357
Output (English): 1385, 5531, 6171, 5895, 9511, 2513, 1989, 9417, 1237, 5419, 567, 4357