diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -9,7 +9,7 @@
     s = LI()
     count = 0
     for m, di in enumerate(s, start=1):
-        for d in range(1, di):
+        for d in range(1, di + 1):
             ss = set(str(m)).union(set(str(d)))
             if len(ss) == 1:
                 count += 1
