You are given sequences , each of length .
For two sequences and of length , define as follows:
Choose two distinct integers so that is maximized.
Find any such pair .
Input
The input is given in the following format.
Output
Print two distinct integers such that is maximized.
If there are multiple valid answers, you may print any of them.
Constraints
- .
- .
- (, ).
Subtasks
Samples
예제 1
입력
3 4
1 5 2
3 2 4
6 1 0
4 7 3
출력
1 4
If we choose and ,
[ f(P_1,P_4)=\max(1+4,5+7,2+3)=12 ]
No pair gives a larger value, so this is a valid output.
예제 2
입력
1 3
5
9
9
출력
2 3
Since , after choosing two sequences, only the sum of their first elements matters.