Task: Program Execution
Input (English): 307, m, k, 389
Output (English): 0, 3, 7, 8, 9