diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -17,7 +17,7 @@
     for j in lst:
         LIS[bisect_left(LIS, j)] = j
 
-ans = -1
+ans = n
 for i in range(n):
     if LIS[i] == 10**9:
         ans = i
