#!/snap/bin/pypy3

from itertools import permutations


def main():
    N = int(input())
    an = list(map(int, input().split()))

    for (a, b) in permutations(an, 2):
        if a == b:
            continue

        tmp_an = an.copy()
        tmp_an.remove(a)
        tmp_an.remove(b)

        c = a + b
        init = a

        for _ in range(N - 2):
            if c not in an:
                ans = False
                continue
            tmp_an.remove(c)
            a, b = b, c

        else:
            if a ^ init == c:
                ans = True
                break

    print("Yes" if ans else "No")


if __name__ == '__main__':
    main()
