Given three arrays and , each consisting of integers. Find the number of triplets (a_i, b_j, c_k) such that the inequality a_i < b_j < c_k holds.
The first line contains the size of the arrays n~(n \le 10^5).
The second line contains the elements of array .
The third line contains the elements of array .
The fourth line contains the elements of array .
Print the number of triplets (a_i, b_j, c_k) that satisfy the condition a_i < b_j < c_k.
Example 1
Example 2
In the first test case, the valid triplets are (a_1, b_1, c_1), (a_1, b_2, c_1) and (a_1, b_2, c_2).