For a string $S$ of length $N$ and an integer $i$ $(0 \leq i \leq N)$, let us define the string $f_i(S)$ as the concatenation of:
- the first $i$ characters of $S$,
- the reversal of $S$, and
- the last $(N-i)$ characters of $S$,
in this order. For instance, if $S = $`abc` and $i = 2$, we have $f_i(S) =$`abcbac`.
You are given a string $T$ of length $2N$. Find a pair of a string $S$ of length $N$ and an integer $i$ $(0 \leq i \leq N)$ such that $f_i(S) = T$. If no such pair of $S$ and $i$ exists, report that fact.
输入格式
The input is given from Standard Input in the following format:
> $N$\
> $T$
#### Constraints
- $1 \leq N \leq 10^6$
- $N$ is an integer.
- $T$ is a string of length $2N$ consisting of lowercase English letters.
输出格式
If no pair of $S$ and $i$ satisfies the condition, print `-1`. Otherwise, print $S$ and $i$, separated by a newline. If multiple pairs of $S$ and $i$ satisfy the condition, you may print any of them.
样例输入 #1
3
abcbac
样例输出 #1
abc
2
样例输入 #2
4
abababab
样例输出 #2
abab
1
样例输入 #3
3
agccga
样例输出 #3
cga
0
样例输入 #4
4
atcodeer
样例输出 #4
-1
提示
***For Sample #1:***
As mentioned in the problem statement, if $S = $`abc` and $i=2$, we have $f_i(S) = $`abcbac`, which equals $T$, so you should print `abc` and $2$.
***For Sample #2:***
$S = $`abab` and $i=3$ also satisfy the condition.
***For Sample #3:***
$S = $`agc` and $i=3$ also satisfy the condition.
***For Sample #4:***
If no pair of $S$ and $i$ satisfies the condition, print `-1`.