#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
float t;
t=(n-2)*180/n;
printf("%.1f",t);
}
/**************************************************************
Problem: 1317
User: huangluowei
Language: C++
Result: Wrong Answer
****************************************************************/