Task: Program Execution
Input (English): 187, 351, f, k
Output (English): 1, 3, 5, 7, 8