Task: Program Execution
Input (English): 3213, 4749, 3187, 4889, f
Output (English): 3213, 4749, 3187, 4889