Let a partition of \[0,N) be an integer sequence S=(s_0,…,s_r) that satisfies the following three conditions:
That is, for each i, \[s_i,s_i+1) represents a continuous interval, and \[0,N) is the union of these r intervals.
Given are three sequences of length N consisting of integers between −109 and 109: A (a_0,…,a_N−1), B (b_0,…,b_N−1), C (c_0,…,c_N−1).
Let the score of partition S be f(S) defined as follows:
f(S)=\min\_{0 \leq i < r}\left\\{b\_{s\_i}+c\_{s\_{i+1}-1}+\sum\_{s\_i \leq j < s\_{i+1}} a\_j\right\\}
Find the maximum value of f over all possible partitions S.
The first line of input contains one integer N (1≤N≤2⋅105). The second line contains n integers: i-th of them denotes a_i. The third and fourth lines describe the sequences b and c in the same format (−109≤a_i,b_i,c_i≤109).
Print one integer: the maximum score over all possible partitions.