Task: Program Execution
Input (English): g, 5379, t, 6779, 8717, l, 5615, K
Output (English): 5379, 6779, 8717, 5615