Given an array a1 , a2 , .... an and a number p . You need to find how many ordered pairs (x,y) (where x and y are the indices of the array ai ) exists which sum to p .
Input:
The first line of the input consists of a single integer n ( 1≤n≤100000) . The second line of the input consists of array ai (−108≤ai≤108). The third line of the input consists of number p(−2⋅108≤p≤2⋅108).
Output:
Output should be a single integer representing the number of ordered pair (x,y).