#t490. 多边形内角和
多边形内角和
Interior Angle Sum of a Polygon
Problem Description
In Euclidean geometry, the sum of interior angles of an -gon () is . Given of the interior angles, you can compute the remaining unknown angle. Write a program to solve this.
Input Format
The first line contains only one integer . The second line contains positive integers: the degrees of each known interior angle. Adjacent integers are separated by a single space.
The data guarantees the polygon is valid.
Output Format
One positive integer: the degree of the unknown angle.
Sample Input
3
45 60
Sample Output
75
Constraints
.
Hint
- Compute , subtract the sum of the given angles, and print the remainder.