In the stock market, a particular stock is called stonks if all of the following holds:

  • The price of the stock should turn at least 5 times. A turn happens when the price increases and then decreases, or decreases and then increases.
  • The final price of the stock is at least double the inital price.


Input

The first line of the input consists of a line with an integer, $n$, the number of times the price of the stock is observed.
The second line consists of $n$ integers, $p_i$, the prices of the stock observed.

Output

Output stonks if the stock is stonks, otherwise output not stonks.

Constraints

It is guaranteed that prices at adjacent observations are different, so prices must change after an observation.

For all testcases: $1 \le n \le 10^6$, $1 \le p_i \le 10^9$
Subtask 1 (50%): $n \le 100, p_i \le 1000$
Subtask 2 (50%): No additional constraints

Sample Test Cases

Input Output
10
5 6 4 5 2 8 9 4 12 14
stonks

There are $6 \ge 5$ turns in total, and the final price is $14 > 2 \times 5$. stonks!
9
1 2 3 4 5 6 7 8 9
not stonks
Click to copy.

Scoring: Per Subtask
Authored by s17f18
Appeared in 2025 Mini Comp 0