Task: Program Execution
Input (English): 4861, K, v, J, f, M, 9643, M, 6101
Output (English): 4861, 9643, 6101