diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -2,7 +2,7 @@
 
 A = [int(x) for x in s]
 
-for i in range(1, 10):
+for i in range(10):
     if i not in A:
         print(i)
         exit()
