diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,7 +9,7 @@
     s = LI()
     count = 0
     for m in range(n):
-        for d in range(1, s[m]):
+        for d in range(1, s[m] + 1):
             if len(set(str(m + 1) + str(d))) == 1:
                 count += 1
     print(count)
