Given $g^X\bmod q$ for a prime $q$ where $g$ has odd order and an integer is it possible to compute $g^{a^X}\bmod p$ using Diffie-Hellman operations and $\{+,-,\times,/\}$ operations?