Task: Program Execution
Input (English): 4981, N, g, 2643, 4897, g, 8163, 7041
Output (English): N, g, g