Task: Program Execution
Input (English): 3977, 8889, g, 9591
Output (English): 3977, 8889, 7, 9591