diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,3 +1,3 @@
 N = int(input())
 A = sorted(list(map(int, input().split())), reverse=True)
-print("Alice" if A[0] > A[1] + 1 else ("Alice" if (A[N - 1] - N - 1) & 1 else "Bob"))
+print("Alice" if A[0] > A[1] + 1 else ("Alice" if (A[0] - N - 1) & 1 else "Bob"))
