Given three array a,b and c of n integers each. Find the number of triplets (ai,bj,ck) such that ai<bj<ck.
First line contains the size of arrays n(n≤105). Second line contains elements of array a. Next line contains elements of array b. Last line contains elements of array c.
Print the number of triplets (ai,bj,ck) such that ai<bj<ck.
In the first test we have triples (a1,b1,c1),(a1,b2,c1) and (a1,b2,c2).