diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -14,7 +14,7 @@
     if A[pos] == -1:
         cnt += 1
     elif A[pos] <= K:
-        less.add(pos)
+        less.add(A[pos])
     if K not in less and len(less) >= K - cnt and cnt <= 1:
         ans = "Alice"
     return cnt, less
