#include <bits/stdc++.h>
using namespace std;
int main(){
	float  n;
	cin>>n;
	cout<<(n-2)*180.0/n;

}

/**************************************************************
	Problem: 1317
	User: fandaohan
	Language: C++
	Result: Wrong Answer
****************************************************************/