Task: Program Execution
Input (English): 2341, T, 3395, 4049, T, K
Output (English): 2341, 3395, 4049