Task: Program Execution
Input (English): [5, 151, 400, 831]
Output (English): [5, 151]