$ python # or other language of your choice >>> a,b = (27, 14) >>> a = a ^ b >>> b = a ^ b >>> a = a ^ b >>> a,b (14, 27)