Task: Program Execution
Input (English): X, K, C, 6871, r
Output (English): 1, 2, 3, 5