Time to shake hands with a lot of people in the next HackerRank challenge called Handshake. The problem reads

At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you tell the total count of handshakes?

Input Format

The first line contains the number of test cases T, T lines follow.

Each line then contains an integer N, the total number of Board of Directors of Acme.

Output FormatPrint the number of handshakes for each test-case in a new line.