#d1407. 好序列
好序列
Good Sequence
Problem Description
You are given a sequence of length . A sequence is called good if and only if for every subinterval there exists at least one element that appears exactly once in that subinterval.
Input Format
There are multiple test cases.
The first line contains an integer (), the number of test cases.
For each test case, the first line contains an integer , and the second line contains integers .
Output Format
For each test case, determine whether the given sequence is good. If it is good, output non-boring; otherwise output boring.
Sample Input
4
5
1 2 3 4 5
5
1 1 1 1 1
5
1 2 3 2 1
5
1 1 2 1 1
Sample Output
non-boring
boring
non-boring
boring
Constraints
For all data, , , and .