407033: GYM102697 004 Polygons

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

004. Polygonstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

The sum of the angles in a triangle is 180, and the sum of the angles in a square is 360. In fact, the sum of angles in any polygon increases by 180 with each side added to the polygon. In this problem, you must figure out the sum of angles of a polygon, given its number of sides.

Input

The first line of the input contains a positive integer T indicating the number of test cases in the problem. The next T lines each contain a positive integer n (1 <= n <= 100): the number of sides of each polygon.

Output

Output T integers: the sum of the angles in each polygon.

ExampleInput
4
3
4
5
6
Output
180
360
540
720

加入题单

算法标签: