diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -46,7 +46,7 @@
     A = [int(x) for x in input()[:-1].split(" ")]
     acc = [0] + list(accumulate(A))
     setAcc = set(acc)
-    for x in range(N - 3):
+    for x in range(N):
         base = acc[x]
         if base + P not in setAcc:
             continue
