Problem I
Maximum Fix
A permutation is a list of integers
Input
The first line contains an integer
Output
Output two space separated integers
Sample Input 1 | Sample Output 1 |
---|---|
5 5 1 2 3 4 |
1 5 |
Sample Input 2 | Sample Output 2 |
---|---|
11 11 3 8 7 1 2 9 4 5 6 10 |
4 5 |