N=int(input()) assert(2<=N<=100) N-=1 print(N*N)