Given three array and of integers each. Find the number of triplets such that .
First line contains the size of arrays . Second line contains elements of array . Next line contains elements of array . Last line contains elements of array .
Print the number of triplets such that .
In the first test we have triples and .