diff --git a/buggy.py b/buggy.py
--- a/buggy.py
+++ b/buggy.py
@@ -1,3 +1,3 @@
 N = int(input())
 A = set(map(int, input().split()))
-print("Yes" if len(A) else "No")
+print("Yes" if len(A) == 1 else "No")
