```
def get_input () :
arr = []
target = input ("pick a number to find: ")
while len (arr) < 5 :
x = input ("pick a number: ")
arr.append (x)
return target, arr
target, arr = get_input ()
def search (arr, target) :
left = 0
right = len (arr) - 1
while left <= right :
mid = (left + right) // 2
if arr [mid] == target :
return mid
elif target > arr [mid] :
left = mid + 1
else :
right = mid -1
return -1
result = search (arr, target)
print (result)
```