A block is sliding down on an inclined plane of slope \( \theta \) and at an instant \( t = 0 \) this block is given an upward momentum so that it starts moving up on the inclined surface with velocity \( u \). The distance \( (S) \) travelled by the block before its velocity become zero, is ________.
\( (g = \text{gravitational acceleration}) \)