from itertools import combinations


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

    ans = False

    for (a, b) in combinations(an, 2):
        tmp_an = an[:]
        tmp_an.remove(a)
        tmp_an.remove(b)

        c = a + b
        init = a

        for _ in range(N - 2):
            c = a + b
            if c not in an:
                break
            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()
