# XOR Everywhere

Chris received a mysterious function written in Python.

 1 2 3 4 5 6 7 def mysterious(a,b,c): a = a ^ b ^ c b = a ^ b ^ c c = a ^ b ^ c a = a ^ b ^ c return pow(a,b) + c 

What does mysterious(a,b,c) outputs?

Details and Assumptions

• a ^ b returns the XOR of $$a$$ and $$b$$.

• pow(a,b) returns $$a^b$$.

×