You're given a sorted list of integers and a target value.
Input:
- Line 1: space-separated sorted integers (the list; may be empty)
- Line 2: the target integer
Output: the index at which target should be inserted to keep the list sorted (the leftmost valid position if the target already appears).