#include using namespace std; int main() { int a; cin >> a; cout << pow((a-1), 2); }