#include int main() { int N; scanf("%d", &N); printf("%d\n", (N - 1) * (N - 1)); fflush(stdout); return 0; }