diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -3,6 +3,6 @@
 for i in range(101):
     for j in range(101):
         for k in range(101):
-            if i + j + l >= n:
+            if 6 * i + 8 * j + 12 * k >= n:
                 ans = min(ans, i * s + j * m + l * k)
 print(ans)
