Task: Program Execution
Input (English): g, 5897, X, 2887, w
Output (English): g, X, w