diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -8,7 +8,7 @@
 for i in range(N - 1):
     if i + 1 in d:
         T += d[i + 1]
-    if A[i] > T:
+    if A[i] >= T:
         print("No")
         exit()
     T -= A[i]
