diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -7,7 +7,7 @@
 S = [0 for i in range(10**6 + 5)]
 selfpair = 0
 for i in a:
-    S[i] = 1
+    S[i] += 1
     if all([int(j) < 5 for j in str(i)]):
         selfpair += 1
 for j in range(6):
