Task: Program Execution
Input (English): L, X, 5687, j, 5823, G
Output (English): L, X, j, G