Task: Program Execution
Input (English): [20, 31, 182, 138, 174, 187]
Output (English): [31, 187]