Task: Program Execution
Input (English): 377, 387, d, k, a
Output (English): 3, 7, 8