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.
# sys.stdin.readline()
import sys
input = sys.stdin.readline

n = int(input())
print(360+(n-3)*180)
# sys.stdin.readline()
import sys
input = sys.stdin.readline

n = int(input())
print(180+(n-3)*180)
