Samau, 4 bytes
Now Samau has built-in functions for XOR multiplicationXOR multiplication and XOR power.
▌3$ⁿ
Hex dump (Samau uses CP737 encoding):
dd 33 24 fc
Explanation:
▌ read a number
3 push 3
$ swap
ⁿ take the XOR power