diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -3,7 +3,7 @@
 ans = 0
 for Mon in range(1, N + 1):
     Mlist = list(str(Mon))
-    for Day in range(1, int(D[Mon - 1])):
+    for Day in range(1, int(D[Mon - 1]) + 1):
         Dlist = list(str(Day))
 
         if len(Mlist) == 1 and len(Dlist) == 1 and Mlist[0] == Dlist[0]:
