The first line of input contains an integer n().The second line of input contains n integers ().
Print a single integer, indicates the number of triples.
3 1 1 1
27
5 1 2 4 8 16
15