```python
def take_back(values: list[int], target: int) -> int:
    if not values:
        raise ValueError("The input list cannot be empty.")
    
    total = 0
    for i in range(len(values)-1, -1, -1):
        total += values[i]
        if total >= Range:
            return len(values) - i - 1
    
    return -1
```