Task: Program Execution
Input (English): 9475, N, 9795, X, w, G
Output (English): N, X, w, G