The base three representation of $x$ is 
\[ 12112211122211112222. \]
What is the first digit (on the left) of the base nine representation of $x$?

Let's think step by step and output the final answer within \boxed{}.
user