You are given a polygon of N sides with vertices numbered from 1, 2, ..., N. Now, exactly 2 vertices of the polygons are colored black and remaining are colored white. You are required to find the number of triangles denoted by A such that:
Input format
Output format
For each test case, print the answer A representing the number of triangles that can be formed with the given conditions in the problem statement.
Constraints
1≤t≤100
5≤N≤105
1≤B1,B2≤N
The number of triangles which satisfy the property are 4 - △136 , △146 , △346 and △134