# Short Setup; Copious Constraints

A number $N$ has three digits when expressed in base 7, say, $N=\overline{xyz}_7.$
When $N$ is expressed in base 9, the digits are reversed: $N=\overline{zyx}_9.$

Find $N$ (in base 10).

×