# 排序

### 样例输入

4
1 3 2 4


### 样例输出

2 3
-1 -1


### 数据规模与约定

$1$ $5$ $\surd$ $11$ $5000$ $\times$
$2$ $5$ $\times$ $12$ $5000$ $\times$
$3$ $7$ $\surd$ $13$ $10000$ $\surd$
$4$ $7$ $\times$ $14$ $20000$ $\surd$
$5$ $10$ $\surd$ $15$ $30000$ $\surd$
$6$ $10$ $\times$ $16$ $40000$ $\surd$
$7$ $3000$ $\times$ $17$ $50000$ $\surd$
$8$ $4000$ $\surd$ $18$ $30000$ $\times$
$9$ $4000$ $\times$ $19$ $40000$ $\times$
$10$ $5000$ $\surd$ $20$ $50000$ $\times$

checker.cpp