def parse(inFile):
inFile.getInt()
return inFile.getInts()
from operator import xor
def solve(values):
if reduce(xor, values) != 0:
return "NO"
return sum(values)-min(values)
if __name__ == "__main__":
from GCJ import GCJ
GCJ(parse, solve, "/Users/lpebody/gcj/2011_q/", "c").run()
ZGVmIHBhcnNlKGluRmlsZSk6CiAgICBpbkZpbGUuZ2V0SW50KCkKICAgIHJldHVybiBpbkZpbGUuZ2V0SW50cygpCgpmcm9tIG9wZXJhdG9yIGltcG9ydCB4b3IKCmRlZiBzb2x2ZSh2YWx1ZXMpOgogICAgaWYgcmVkdWNlKHhvciwgdmFsdWVzKSAhPSAwOgogICAgICAgIHJldHVybiAiTk8iCiAgICByZXR1cm4gc3VtKHZhbHVlcyktbWluKHZhbHVlcykKCmlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6CiAgICBmcm9tIEdDSiBpbXBvcnQgR0NKCiAgICBHQ0oocGFyc2UsIHNvbHZlLCAiL1VzZXJzL2xwZWJvZHkvZ2NqLzIwMTFfcS8iLCAiYyIpLnJ1bigpCgogICAgICAgICAgICAK