Task: Program Execution
Input (English): 4031, 3981, 6419, g, 1599, X
Output (English): 4031, 3981, 6419, 1599