There is $1$ integer between $300$ and $400$ (inclusive) in base $10$ such that its last digit is $7$ when written in bases $8$, $10$, and $12$. Find this integer in base $10$.

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