long long right_binary_search(std::vector<long long>& one, long long num)
{
long long l = 0, r = one.size() - 1;
while (l < r)
{
long long mid = l + (r - l) / 2;
if (one[mid] == num)
{
return mid;
}
else if (one[mid] < num)
l = mid + 1;
else if (one[mid] >= num)
r = mid - 1;
}
if (one[l] == num)
return l;
else
return -1;
}