diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,7 +9,7 @@
 B.sort()
 
 low = 0
-high = 10**9
+high = 10**9 + 1
 while low + 1 < high:
     m = (high + low) // 2
     fx = bisect_right(A, m)
