Task: Program Execution
Input (English): C, G, 5969, 7389, J, w, 121
Output (English): C, G, J, w