diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -14,4 +14,4 @@
         if j + 1 <= 9:
             dp[i][j] += dp[i - 1][j + 1]
             dp[i][j] %= mod
-print(sum(dp[n - 1]))
+print(sum(dp[n - 1]) % mod)
