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: Wrong Answer)

#include<stdio.h>

int main()
{
    char s[200000];
    scanf("%s",&s);
    int i,oldcounter=0,counter=0;

    do
    {
        oldcounter=counter;
        for(i=0;i<199998;i++)
        {
            if(s[i]=='A'&&s[i+1]=='B'&&s[i+2]=='C')
            {
                s[i]='B';
                s[i+1]='C';
                s[i+2]='A';
                counter++;
                printf("qwertyui\n");
            }
            //if(s[i]!='A'&&s[i]!='B'&&s[i]!='C')break;
        } 
        printf("%s\n",s);
    } while (counter!=oldcounter);
    printf("%d",counter);
    return 0;
}