Task: Program Execution
Input (English): [39, 271, 5, 318, 613, 122, 491, 610, 59, 87]
Output (English): [271, 5, 613, 491, 59]