Task: Program Execution
Input (English): N, g, Y, 3623, r, N, J, 4999, G
Output (English): 3623, 4999