Task: Program Execution
Input (English): 1355, R, 8865, 6835, 6217, 2879, K, 7767
Output (English): 1, 3, 4, 5, 6, 8