Students love
Nurdaulet and Zharaskhan are coaching students. To each student they have their own attitudes, it can be expressed as number a[i]
(for Nurdaulet) and b[i]
(for Zharaskan) that are called love index of students. Askar asked them to calculate the unfair attitude rate. Unfair attitude rate is the difference between the largest and the smallest love index. In order to not show their possibly large unfair attitude rates, they decided to cheat: each shuffle his array, then form new array c[i]
= a[i]
+ b[i]
and show the rate of new formed array to Askar. What is the minimal possible rate they can achieve?
Input
On the first line you are given single integer n (1 ≤ n ≤ 200000). On the second line you are given n integers a[i]
(-10^6
≤ a[i]
≤ 10^6
). On the third line you are given n integers b[i]
(-10^6
≤ b[i]
≤ 10^6
).
Output
Output single integer, the answer to the problem.