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 .
The input is given in the following format.
Print two distinct integers such that is maximized.
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.
If there are multiple valid answers, you may print any of them.
Since , after choosing two sequences, only the sum of their first elements matters.