PROGRAMMING:Interesting jump
###Task description
There is "interesting jump" in a sequence of length n (n > 0). At present, only when the absolute value of the difference between adjacent elements is sorted from 1 to (n-1). For example, 1 4 2 3 has "interesting jumps" because the absolute values of the differences are 3, 2 and 1, respectively. Of course, there must be "interesting jumps" in any single element sequence. You need to write a program to determine whether there are "interesting jumps" in a given sequence.
###Input format:
In a row, the first number is n (0 < n < 3000), which is the length of the sequence, followed by N integers, which are the elements in the sequence in turn, and the absolute value of each element does not exceed 1000000000.
###Output format:
If the sequence has "interesting jump", output "Jolly", otherwise output "not jolly".
###Input example:
```in
4 1 4 2 3
```
###Output example:
```out
Jolly
```
###Title Source
Note: this topic is selected from openjudge website http://noi.openjudge.cn/ch0106/07/
answer:If there is no answer, please comment
There is "interesting jump" in a sequence of length n (n > 0). At present, only when the absolute value of the difference between adjacent elements is sorted from 1 to (n-1). For example, 1 4 2 3 has "interesting jumps" because the absolute values of the differences are 3, 2 and 1, respectively. Of course, there must be "interesting jumps" in any single element sequence. You need to write a program to determine whether there are "interesting jumps" in a given sequence.
###Input format:
In a row, the first number is n (0 < n < 3000), which is the length of the sequence, followed by N integers, which are the elements in the sequence in turn, and the absolute value of each element does not exceed 1000000000.
###Output format:
If the sequence has "interesting jump", output "Jolly", otherwise output "not jolly".
###Input example:
```in
4 1 4 2 3
```
###Output example:
```out
Jolly
```
###Title Source
Note: this topic is selected from openjudge website http://noi.openjudge.cn/ch0106/07/
answer:If there is no answer, please comment