#include int main() { int in; std::cin >> in; std::cout << ((in - 1) * (in - 1)) << std::endl; return 0; }