def main():
    N = int(input())
    A = list(map(int,input().split()))
    if N % 2 == 0:
        return sum(A) == 0
    hoge = A[0]
    for i in A[1:]:
        hoge ^= i
    return hoge == 0

print(['False','True'][main()])