Problem:
Score : 100 points

Problem Statement

Given an integer N not less than 3, find the sum of the interior angles of a regular polygon with N sides.

Print the answer in degrees, but do not print units.

Constraints

3 \leq N \leq 100

Input

Input is given from Standard Input in the following format:

N

Output

Print an integer representing the sum of the interior angles of a regular polygon with N sides.

Sample Input 1

3

Sample Output 1

180

The sum of the interior angles of a regular triangle is 180 degrees.

Sample Input 2

100

Sample Output 2

17640

Solution in C (GCC 5.4.1) (judge verdict: Runtime Error)

#include<stdio.h>

int main(void){

    long int an[100000],amari[100000];

    long int  x[100000],d[100000],n[1000000000];

    int q;

    int i,j;

    scanf("%d",&q);

    for(i=0;i<q;i++){
        scanf("%d %d %d",&x[i],&d[i],&n[i]);
    }

    for(i=0;i<q;i++){
        an[i]=1;
        for(j=0;j<n[i];j++){
            an[i]=(x[i]+j*d[i])*an[i];
        }
        amari[i]=an[i]%1000003;
    }

    for(i=0;i<q;i++){
        printf("%d %d",an[i],amari[i]);
    }

    



    return 0;
}