You are given three arrays A,B, and C. All three arrays consist of N integers.
You can perform the following operation on each index for at most one time:
You are required to maximize the following expression:
Input format
Output format
Print a single integer that denotes the maximum value of S.
Constraints
1≤N≤105
1≤Ai,Bi,Ci<230
For i=1, we can chose D=4
For i=2, we can chose D=4
For i=3, we can chose D=9