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