three iterations to choose target number