You are given rods of length . You have to pick any three of them and build a triangle. How many distinct triangles can you make? Note that, two triangles will be considered different if they have at least one pair of arms with different length.
Each line has one positive integer . The end of input will be indicated by a case with . This case should not be processed.
For each test case, print the number of distinct triangles you can make.