x=0 for _ in [0]*2**int(input()):x^=int(input()) print("YNeos"[bool(x)::2])