time limit per test
1 second
memory limit per test
512 megabytes
input
standard input
output
standard output
Examples
Input
1
9
Output
2
1 8
Input
5
-1 3 0 4 7
Output
3
4 -1 4
Input
4
2 -2 14 18
Output
3
-2 2 16