#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
int main() {
  int N;
  cin >> N;
  cout << 180 * (N - 2) << endl;
  string S;
  cin >> S;
  for (int i = 0; i < S.size(); ++i) {
  }
}
