Task: Program Execution
Input (English): n, 1463, 2661, 8855, 4253, 4491, 5355, 2825, P, 2879, G, n
Output (English): 1463, 2661, 8855, 4253, 4491, 5355, 2825, 2879