Task: Program Execution
Input (English): 6049, 5639, f, j, 5629, g, d
Output (English): d, f, g, j