SP2905 NOTATRI - Not a Triangle

Description

You have N (3

Input Format

The input file consists of multiple test cases. Each test case starts with the single integer N, followed by a line with the integers L $ _{1} $ , ..., L $ _{N} $ . The input is terminated with N = 0, which should not be processed.

Output Format

For each test case, output a single line containing the number of triples.