Task: Program Execution
Input (English): 8557, 3151, n, m
Output (English): 1, 2