N= int(input())-1 print(N*N)