\[S = \frac{at^{2}}{2}\ \ \ \ \ \ \ \ | \cdot \frac{2}{a}\text{\ \ \ }\]
\[t^{2} = S \cdot \frac{2}{a}\text{\ \ \ }\]
\[t = \sqrt{\frac{2S}{a}}.\]