n = int(input()) ax = 0 for _ in range(1 << n): ax ^= int(input()) print("Yes" if ax == 0 else "No")