diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -12,7 +12,7 @@
     mod_D.append(mod_D[i] + w)
 
 for i in range(len(mod_D) - 1):
-    if (mod_D[i + 1] - mod_D[i]) % w > b:
+    if mod_D[i + 1] - mod_D[i] > b:
         print("Yes")
         exit()
 print("No")
